Actions2
Take Snapshot
AI-generatedOverview
This node captures a snapshot (screenshot) of a specified URL using the Snap Kit API. It is useful for scenarios where you need to programmatically capture visual representations of web pages, such as for monitoring website changes, archiving content, or generating previews. For example, you can capture a full-page screenshot of a product page to include in reports or capture a viewport-sized screenshot of a landing page for marketing purposes.
Use Case Examples
- Capture a full-page screenshot of a news article URL to archive the content visually.
- Take a viewport screenshot of a dashboard URL to include in automated status reports.
Properties
| Name | Meaning |
|---|---|
| URL | The URL to capture (must be a valid URI) |
| Browser Width | Width of the viewport (minimum 375 pixels) |
| Browser Height | Height of the viewport (minimum 500 pixels) |
| Screenshot Quality | Screenshot quality from 1 to 100 |
| Operation Timeout | Timeout in seconds for the operation (between 10 and 120 seconds) |
| Full Page | Whether to capture the full page or just the viewport |
| Sync | Whether to wait for the capture to complete before responding |
Output
JSON
url- The URL that was capturedwidth- The width of the viewport used for the snapshotheight- The height of the viewport used for the snapshotquality- The quality setting used for the screenshotfullPage- Indicates if the full page was capturedsync- Indicates if the operation was synchronoustimeout- The timeout setting used for the operationsnapshotData- The resulting snapshot data or metadata returned from the Snap Kit API
Dependencies
- Snap Kit API accessed via an API key credential
Troubleshooting
- Ensure the URL is a valid and accessible URI to avoid request failures.
- Timeout errors may occur if the page takes too long to load; adjust the timeout parameter accordingly.
- If the snapshot quality is too low, increase the quality parameter but note it may increase processing time.
- If the node is set to asynchronous (sync=false), the snapshot may not be immediately available; handle accordingly in downstream logic.
Links
- Snap Kit API Documentation - Official documentation for the Snap Kit API used by this node