Integrate with n8n

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

  1. Open your n8n instance
  2. Go to Settings > Community Nodes
  3. Click Install a community node
  4. Enter: n8n-nodes-getscreenshot
  5. 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

  1. In n8n, go to Credentials > New Credential
  2. Search for “GetScreenshot API”
  3. Enter your API key
  4. 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
PDF 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

  1. Add a GetScreenshot node to your workflow
  2. Select Take Screenshot operation
  3. Enter the URL to capture
  4. Choose a device preset or use custom dimensions
  5. 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

  1. Set URL to capture
  2. Set Output Format to “PDF”
  3. 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

  1. Set URL to capture
  2. Add options:
    • Hide Elements: .ads, .popup
    • Custom CSS: body { background: white; }
    • Additional Wait Time: 2000

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.

  1. Add an AI Agent node to your workflow and connect a chat model.
  2. On the agent’s Tool connector, click + and select GetScreenshot.
  3. Choose your GetScreenshot credentials and the Take Screenshot operation.
  4. In the URL field, click the star icon at the end of the field so the model fills in the value.
  5. 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 localhost or 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=true and 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 key
    • url: Target URL
    • fullpage: true/false
    • width: Viewport width
    • height: 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 domcontentloaded for heavy pages
  • Reduce the additional wait time
  • The webhook option does not shorten the request. The node still waits for the capture

Support


Integrate with Make.com
Integrate with Google Sheets

Related Docs