n8n-nodes-pixcap
v1.0.0
Published
n8n community node to capture website screenshots using the Pixcap API
Maintainers
Readme
n8n-nodes-pixcap
This is an n8n community node that allows you to capture website screenshots using the Pixcap API.
n8n is a fair-code licensed workflow automation platform.
Installation
Follow the installation guide in the n8n community nodes documentation.
npm
npm install n8n-nodes-pixcapn8n Community Nodes
- Go to Settings > Community Nodes
- Select Install
- Enter
n8n-nodes-pixcap - Agree to the risks and select Install
Credentials
To use this node, you need a Pixcap API key:
- Go to pixcap.dev
- Sign up or log in to your account
- Navigate to the API section to get your API key
- In n8n, create new credentials of type Pixcap API
- Enter your API key
Operations
Capture Screenshot
Take a screenshot of any website URL.
Parameters:
| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | URL | string | (required) | The URL of the website to screenshot | | Width | number | 1280 | Viewport width in pixels | | Height | number | 800 | Viewport height in pixels | | Full Page | boolean | false | Capture the entire scrollable page | | Format | string | png | Image format: png, jpeg, or webp | | Quality | number | 80 | Image quality (1-100, for JPEG/WebP) | | Dark Mode | boolean | false | Enable dark mode preference | | Delay | number | 0 | Wait time in ms before capture |
Output:
The node outputs:
- Binary data: The screenshot image
- JSON metadata: URL, dimensions, format, and response time
Example Usage
Basic Screenshot
- Add a Pixcap node to your workflow
- Configure your Pixcap API credentials
- Set the URL to capture (e.g.,
https://example.com) - Execute the workflow
- The screenshot will be available as binary data
Full Page Screenshot with Dark Mode
- Add a Pixcap node
- Set the URL
- Open Options
- Enable Full Page
- Enable Dark Mode
- Set format to WebP for smaller file size
Save Screenshot to File
- Add a Pixcap node configured as above
- Add a Write Binary File node
- Connect the Pixcap node output to the file node
- Set the file path (e.g.,
/tmp/screenshot.png)
