Overview
GetScreenshot provides an official community node for n8n, the popular open-source workflow automation platform. Capture screenshots and PDFs of web pages directly in your n8n workflows, whether self-hosted or using n8n cloud.
Requirements
- GetScreenshot API Key - Get one here
- Hamilton Plan or higher - Required for n8n integration
- n8n instance - Self-hosted or n8n cloud
Installation
Via n8n GUI (Recommended)
- Open your n8n instance
- Go to Settings > Community Nodes
- Click Install a community node
- Enter:
n8n-nodes-getscreenshot - Click Install
Via npm (Self-hosted)
If you’re running n8n with npm, install the node globally:
npm install -g n8n-nodes-getscreenshot
Then restart your n8n instance.
npm package: n8n-nodes-getscreenshot
Credentials Setup
- In n8n, go to Credentials > New Credential
- Search for “GetScreenshot API”
- Enter your API key
- Click Save
The credentials are automatically validated using the /validate-key endpoint.
Available 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. Each call counts as one request toward your quota |
Device Presets
Quickly capture screenshots using common device dimensions:
| Category | Presets |
|---|---|
| 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
| Format | Description |
|---|---|
| PNG | Default format, lossless compression |
| JPEG | Smaller file size, lossy compression |
| An A4 PDF of the page instead of an image |
The Output Format list in the node also shows WebP. WebP is not officially supported by the API, so use PNG or JPEG.
Screenshot Options
Viewport Settings
| Option | Description |
|---|---|
| Custom width and height | Set exact pixel dimensions |
| Device scale factor | 1x, 2x, or 3x for Retina displays |
| Device preset | Use predefined device dimensions |
Timing Options
| Option | Description |
|---|---|
| Wait until condition | load, domcontentloaded, networkidle0, networkidle2 |
| Additional wait time | Extra milliseconds to wait |
| Scroll page | Trigger lazy-loaded content before capture |
Element Targeting
| Option | Description |
|---|---|
| Capture specific element | Target by CSS selector |
| Hide elements | Remove elements before capture |
| Click element | Interact with page before capture |
Page Modifications
| Option | Description |
|---|---|
| Auto-hide cookie banners | Automatically remove consent dialogs |
| Highlight text | Mark specific words with yellow highlight |
| Inject custom CSS | Add styles before capture |
| Execute custom JavaScript | Run scripts before capture |
Delivery Options
| Option | Description |
|---|---|
| Email screenshot | Send to email address |
| POST to webhook | Sends a copy of the result to your endpoint after the capture. The node still waits for the capture and returns the result itself |
Usage Examples
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: the screenshot URL, the captured page, its HTTP status and the capture time
- Binary data: The actual screenshot image, when Download File is on (the default)
Page as PDF
- Set URL to capture
- Set Output Format to “PDF”
- Connect to a Write File node to save the PDF
PDFs are always A4. The PDF Paper Format option has no effect.
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 Schema
This is the output of node version 1.1.0 and later.
JSON Output
The Take Screenshot operation returns:
{
"status": "success",
"screenshotUrl": "https://storage.googleapis.com/getscreenshot-storage/imageAbC123xYz9.png",
"originUrl": "https://example.com",
"pageStatus": 200,
"captureDate": "2026/11/18",
"captureHour": "14:03:22",
"format": "png",
"fullPage": false,
"preset": "iphone12",
"capturedAt": "2026-11-18T14:03:24.000Z"
}
| Field | Description |
|---|---|
status |
success when the capture worked |
screenshotUrl |
Public link to the stored image or PDF. It works for 30 days |
originUrl |
The page that was captured |
pageStatus |
HTTP status code the page returned |
captureDate |
Date of the capture (YYYY/MM/DD, UTC) |
captureHour |
Time of the capture (HH:MM:SS, UTC) |
format |
The output format you selected |
fullPage |
Whether Full Page was on |
preset |
The device preset. Only present when a preset is selected |
capturedAt |
Time the node finished the capture, ISO 8601 |
The output also has url, a key kept from version 1.0 that holds the same value as originUrl.
The Get Usage operation returns:
{
"usedQuota": 123,
"limit": 6000,
"remaining": 5877,
"quotaRestartDate": "2026-12-01"
}
| Field | Description |
|---|---|
usedQuota |
Requests used in the current period |
limit |
Your monthly allowance |
remaining |
limit minus usedQuota |
quotaRestartDate |
Date the quota resets |
The output also has remainingQuota, the plan quota object exactly as the API returns it (limit, offset, period), and two keys kept from version 1.0: totalQuota (same value as limit) and resetDate (same value as quotaRestartDate).
Binary Output
When Download File is on (the default), the screenshot or PDF is attached as binary data named data, ready for use with downstream nodes:
- Write Binary File - Save to disk
- Send Email - Send as attachment
- AWS S3 / Google Cloud Storage - Upload to cloud
- HTTP Request - Send as multipart form data
Turn Download File off to return only the JSON. This is faster when the next node only needs the link in screenshotUrl.
Using the output in expressions
Reference the fields in later nodes with n8n expressions:
{{ $json.screenshotUrl }}
{{ $json.pageStatus }}
Use as a tool in n8n AI Agents
From version 1.1.0 the node sets usableAsTool, so an n8n AI Agent node can call it as a tool. The agent decides when to take a screenshot and which URL to capture.
- Add an AI Agent node to your workflow and connect a chat model.
- On the agent’s Tool connector, click + and select GetScreenshot.
- Choose your GetScreenshot credentials and the Take Screenshot operation.
- In the URL field, click the star icon at the end of the field so the model fills in the value.
- Turn Download File off. The agent receives the node’s JSON output, so the binary file is not needed and the call is faster.
Instead of the star icon in step 4, you can write the expression for the URL field yourself:
{{ $fromAI('url', 'Public http or https URL of the page to capture', 'string') }}
Things to know:
- The agent gets the link in
screenshotUrl, not the image itself. To have a model look at the screenshot, pass that URL to a node that sends images to a vision model. - Each tool call is one API request and uses one screenshot of your quota, including captures that fail. Set a limit on the agent’s iterations so a confused agent cannot burn through the quota.
- The API cannot reach
localhostor private networks. The agent can only capture public pages. - n8n 1.85.0 and later need no extra configuration to use community nodes as tools. Older self-hosted versions only allowed it after setting the environment variable
N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=trueand restarting n8n. Upgrading n8n is the simpler path.
Alternative: HTTP Request Node
If you prefer not to install the community node, you can use n8n’s built-in HTTP Request node:
Configuration:
- Method: GET
- URL:
https://api.rasterwise.com/v1/get-screenshot - Query Parameters:
apikey: Your API keyurl: Target URLfullpage: true/falsewidth: Viewport widthheight: Viewport height
See the API Reference for all available parameters.
Troubleshooting
Node not appearing after installation
- Restart your n8n instance
- Check that the node is listed in Settings > Community Nodes
“Invalid API key” error
- Verify your API key in the credentials
- Ensure you have Hamilton Plan or higher
Screenshot is blank or incomplete
- Increase the wait time in options
- Try different “Wait until” settings
- Enable “Scroll page” for lazy-loaded content
Timeout errors
- Set “Wait until” to
domcontentloadedfor heavy pages - Reduce the additional wait time
- The webhook option does not shorten the request. The node still waits for the capture
Support
- n8n Community Nodes: docs.n8n.io/integrations/community-nodes
- GetScreenshot Docs: docs.rasterwise.com
- API Reference: API Docs
- Support Email: support@rasterwise.com