This is an n8n community node for Capture - a powerful API for capturing website screenshots, generating PDFs, extracting content, and retrieving metadata.
Capture provides a reliable and fast API for web page capture with features like:
- High-quality screenshots in multiple formats
- PDF generation with custom formatting
- Content extraction (HTML and text)
- Metadata extraction (titles, descriptions, etc.)
- Mobile and desktop viewport simulation
- Ad/tracker blocking capabilities
You need to have an account with Capture to use this node. You can sign up at https://capture.page/console.
Follow the installation guide in the n8n community nodes documentation.
This node supports all four Capture API endpoints:
Capture website screenshots with customizable options:
- Viewport dimensions - Set custom width and height
- Full page - Capture entire scrollable content
- Format - PNG, JPEG, or WebP
- Output - Binary data or URL only
Generate PDFs of web pages:
- Format - A4, A3, A5, Letter, Legal, Tabloid
- Orientation - Portrait or landscape
- Full page - Include entire scrollable content
- Output - Binary data or URL only
Extract HTML content and plain text from web pages:
- Returns structured JSON with HTML and text content
- Useful for content analysis and processing
Extract metadata from web pages:
- Page titles, descriptions, Open Graph data
- Social media metadata
- SEO-related information
You'll need to configure Capture API credentials:
- Go to Settings → Credentials in your n8n instance
- Create new credentials for Capture API
- Enter your API Key and API Secret from Capture Console
All operations support additional options:
- User Agent - Custom user agent string
- Wait For Selector/ID - CSS selector or element ID to wait for
- Block Ads/Trackers/Cookie Banners - Block advertisements, tracking scripts, and cookie popups
- Dark Mode - Enable dark mode rendering
- Mobile - Emulate mobile device
- Device Emulation - Emulate specific devices (iPhone X, etc.)
- HTTP Authentication - Basic authentication support
- Fresh - Force new capture, ignore cache
- Bot Detection Bypass - Bypass anti-bot systems
- Element Selection - Screenshot specific elements
- Transparent Background - PNG transparency support
- Best Format - Auto-select optimal image format
- Custom Filenames - Set custom file names
{
"operation": "screenshot",
"url": "https://example.com",
"viewportWidth": 1200,
"viewportHeight": 800,
"format": "png",
"output": "binaryData"
}
{
"operation": "screenshot",
"url": "https://example.com",
"viewportWidth": 375,
"viewportHeight": 667,
"additionalOptions": {
"darkMode": true,
"blockAds": true
}
}
{
"operation": "pdf",
"url": "https://example.com",
"pdfFormat": "A4",
"orientation": "portrait",
"pdfOutput": "binaryData"
}
{
"operation": "content",
"url": "https://example.com"
}
For issues related to this n8n node, please create an issue in this repository.
For Capture API related issues, please contact Capture Support.
Contributions are welcome! Please feel free to submit a Pull Request.