Screenshot
AI-generatedOverview
This node performs screenshot rendering operations using ScreenshotOne API. It supports capturing screenshots from different input sources such as URL, HTML, or Markdown. Users can specify the output format (PNG, JPG, WEBP), whether to capture the full page, and control caching options. The node is useful for generating visual representations of web content for documentation, monitoring, or content previews.
Use Case Examples
- Capture a screenshot of a webpage by providing its URL and get the image in JPG format.
- Render HTML content as a screenshot in PNG format for embedding in reports.
- Use Markdown input to generate a visual snapshot of formatted text content.
Properties
| Name | Meaning |
|---|---|
| Source | The type of input to render, which can be URL, HTML, or Markdown. |
| URL | The URL to render as a screenshot (required if Source is URL). |
| HTML | The HTML content to render as a screenshot (required if Source is HTML). |
| Markdown | The Markdown content to render as a screenshot (required if Source is Markdown). |
| Response Type | Determines the format of the rendering result: JSON for URL, Binary for base64-encoded image, or Empty for no content. |
| Format | The image format of the screenshot output, applicable for screenshot and full page operations. |
| Full Page Scroll Delay (Milliseconds) | Delay in milliseconds for scrolling when capturing full page screenshots. |
| Full Page | Whether to capture the entire page in the screenshot. |
| Cache | Enable or disable caching for the request. |
| Cache TTL (Seconds) | Time to live for cache in seconds, with a minimum of 14400 seconds. |
| Cache Key | Custom cache key for the request to control caching behavior. |
Output
JSON
jsonurl- URL of the rendered screenshot if response type is JSON.data- Base64-encoded binary data of the screenshot if response type is Binary.format- Format of the rendered screenshot (e.g., png, jpg, webp).error- Error message if the rendering operation fails.
Dependencies
- ScreenshotOne API
- API key credential for authentication
Troubleshooting
- Ensure the source input matches the selected source type (URL, HTML, or Markdown) to avoid unsupported source errors.
- Check API credentials and authentication if HTTP requests fail.
- Verify that the response type and format options are compatible with the selected operation.
- Common errors include unsupported source or operation, which can be resolved by selecting valid options.
Links
- ScreenshotOne API Documentation - Official documentation for ScreenshotOne API usage and parameters.