Actions5
- Screenshot Actions
- Metadata Actions
Overview
The PagePixels Screenshots node captures website screenshots using the PagePixels API. It supports rendering raw HTML content before taking the screenshot, allowing users to customize the webpage appearance dynamically. This node is useful for generating visual snapshots of web pages for monitoring, archiving, or analysis purposes. For example, it can be used to capture a webpage after performing multi-step interactions like clicking buttons or filling forms, or to capture specific elements on a page by CSS selector.
Use Case Examples
- Capture a screenshot of a webpage rendered from custom HTML content.
- Take a screenshot after waiting for a specific element to load using a CSS selector.
- Perform multi-step actions on a webpage (e.g., clicks, text input) before capturing the screenshot.
- Capture a full-page screenshot with advanced scrolling for complex content.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authenticating with the PagePixels API, either API Key or OAuth2. |
| HTML Content | Raw HTML content to render before taking the screenshot. |
| Options | Various optional parameters to customize the screenshot capture, such as time zone, wait time, CSS selector to wait for, multi-step actions, viewport size, image format, quality, scale factor, CSS/JS injection, user agent, HTTP headers, cookies, caching, geolocation, thumbnail size, ad/tracker blocking, JavaScript disabling, and custom metadata. |
| Request Options | Node-level request options such as batching, SSL certificate validation, proxy, and timeout settings. |
Output
JSON
screenshot_url- URL of the captured screenshot image.screenshot_id- Unique identifier for the screenshot.status- Status of the screenshot capture request.metadatacustom_title- Custom title tag for the screenshot.custom_description- Internal note or description for the screenshot.
Dependencies
- PagePixels API
Troubleshooting
- Ensure the API key or OAuth2 credentials are correctly configured and valid.
- Verify that the HTML content provided is valid and renders correctly.
- If using CSS selectors for waiting or capturing elements, ensure the selectors are correct and elements exist on the page.
- Check network connectivity and proxy settings if requests fail or time out.
- If SSL errors occur, consider enabling the option to ignore SSL issues, but be aware of security risks.
Links
- PagePixels Multi-Step Screenshots Documentation - Reference for multi-step actions JSON format and usage.