Package Information
Downloads: 2 weekly / 38 monthly
Latest Version: 1.0.2
Author: Rasterwise
Documentation
n8n-nodes-getscreenshot
This is an n8n community node for the GetScreenshot API. It lets you capture screenshots and PDFs of web pages directly in your n8n workflows.
n8n is a fair-code licensed workflow automation platform.
Installation
Follow the installation guide in the n8n community nodes documentation.
npm package name: n8n-nodes-getscreenshot
Operations
| Operation | Description |
|---|---|
| Take Screenshot | Capture a screenshot or PDF of a webpage with customizable options |
| Get Usage | Check your current API quota and usage statistics |
Credentials
You need a GetScreenshot API key to use this node. Get your API key at getscreenshotapi.com.
- Create credentials of type "GetScreenshot API"
- Enter your API key
- The credentials will be tested automatically using the
/validate-keyendpoint
Features
Device Presets
Quickly capture screenshots using common device dimensions:
- Mobile: iPhone 12, iPhone X, iPhone 6/7/8, Pixel 2
- Tablet: iPad, iPad Pro
- Desktop: HD (1280×800), HD+ (1366×768), SXGA, WSXGA+
Output Formats
- PNG (default)
- JPEG
- WebP
- PDF (with paper size options)
Advanced Options
Viewport:
- Custom width and height
- Device scale factor (1x, 2x, 3x for Retina)
Timing:
- Wait until condition (network idle, DOM loaded, etc.)
- Additional wait time in milliseconds
- Scroll page to trigger lazy-loading
Element Targeting:
- Capture specific element by CSS selector
- Hide elements before capture
- Click element before capture
Page Modifications:
- Auto-hide cookie banners
- Highlight text
- Inject custom CSS
- Execute custom JavaScript
Delivery:
- Email screenshot to address
- POST to webhook URL
Usage Example
Basic Screenshot
- Add a GetScreenshot node to your workflow
- Select "Take Screenshot" operation
- Enter the URL to capture
- Choose a device preset or use custom dimensions
- The node outputs both:
- JSON data: URL, dimensions, status
- Binary data: The actual screenshot image
Full Page PDF
- Set URL to capture
- Set Output Format to "PDF"
- Enable "Full Page"
- Add option "PDF Paper Format" and select A4
- Connect to a "Write File" node to save the PDF
Screenshot with Modifications
- Set URL to capture
- Add options:
- Hide Elements:
.ads, .popup - Custom CSS:
body { background: white; } - Additional Wait Time:
2000
- Hide Elements:
Output
The Take Screenshot operation returns:
JSON:
{
"status": "ok",
"url": "https://example.com",
"screenshotUrl": "https://storage.googleapis.com/...",
"width": 1280,
"height": 800,
"format": "png",
"fullPage": false,
"capturedAt": "2024-01-15T10:30:00.000Z"
}
Binary:
The screenshot image is attached as binary data named data, ready to be used with downstream nodes like:
- Write Binary File
- Send Email (with attachment)
- Upload to S3/GCS
- HTTP Request (multipart form)