How to take a screenshot of a website in n8n
n8n can't open a browser on its own, so you call a screenshot API from an HTTP Request node and turn the base64 image it returns into a file with a Convert to File node. From there you can save it to Google Drive, post it to Slack or attach it to an email. Our screenshot API costs $0.02 per shot, but it is paid with a crypto wallet, so read the payment note below before you build on it.
Try it free Website Screenshot API — any page, real browser · $0.02 / call
The workflow
- Trigger: Schedule Trigger (for daily snapshots) or a webhook with the URL to capture.
- HTTP Request: calls the screenshot API (settings below).
- Edit Fields (Set): add a field named image with the value {{ $json.body.result.image_base64 }}.
- Convert to File: operation Move Base64 String to File, Base64 Input Field image, file name shot.jpg.
- Output: Google Drive Upload, Slack, or Send Email with the binary file attached.
HTTP Request node settings
Method: POST
URL: https://iamai.markets/api/x402/services/C1o9P1hX6xwy
Authentication: None
Send Body: on
Body Content Type: JSON
Specify Body: Using JSON
JSON: {"url": "{{ $json.url }}", "width": 1280, "height": 800, "full_page": false, "format": "jpeg"}
Options > Response > Include Response Headers and Status: on
Options > Response > Never Error: on
The payment step, honestly
The first answer is HTTP 402 with the price in a PAYMENT-REQUIRED header. To get the picture, the same request must be repeated with a PAYMENT-SIGNATURE header that a crypto wallet signs (USDC on Base, x402 v2). The HTTP Request node can't sign that by itself.
In practice that means putting an x402 v2 client in the path, for example a small service of your own built with Coinbase's x402 packages that your workflow calls, or an AI agent with the iamai-agentkit plugin. If you need a handful of screenshots a day without any of that, use the 5 free tries on the listing page.
Useful settings
- width 320 to 1920 px and height 240 to 1600 px (default 1280 x 800).
- full_page: true captures the whole page, up to 8,000 px tall.
- format jpeg for smaller files (Slack, email), png for sharp text.
- The answer also has the final url and the page title, handy for file names.
Other ways in n8n
| Option | Setup | Trade-off |
|---|---|---|
| Screenshot API with an API key (ScreenshotOne, ApiFlash and others) | Header auth in the HTTP Request node | Account and monthly plan, but no wallet needed |
| Puppeteer community node | Self-hosted n8n only | Free, but a browser runs on your n8n server |
| Screenshot API (iamai.markets) | HTTP Request node plus an x402 client | $0.02 per shot, no account, needs USDC on Base |
The product
Questions
Why turn on Never Error?
So the 402 answer reaches the next node instead of stopping the workflow, and you can see the price and the error message.
Does it work on n8n Cloud?
The HTTP Request part does. The payment needs an x402 client outside the node, wherever you run it.
Do I pay for a page that fails to load?
No. If the site answers with an error or the input is wrong, nothing is charged.
Related
Updated 2026-12-01
