Generate optimized website screenshots with advanced customization options
API key used to authenticate the request. Must be at least 32 characters long.
32
"sk_live_abcdef1234567890abcdef1234567890"
Target URL of the website to capture. Must be a valid HTTP or HTTPS URL.
"https://example.com"
CSS selector to capture a specific element instead of the full page. If provided, only the matching element will be screenshotted.
".main-content"
Width of the viewport in pixels for the screenshot
1 <= x <= 7680
1920
Height of the viewport in pixels for the screenshot
1 <= x <= 4320
1080
Enable mobile device emulation with touch events and mobile user agent
false
Set device orientation to landscape mode when mobile emulation is enabled
false
Enable touch event support for the emulated device
false
Device pixel ratio for high-DPI displays. Higher values produce sharper images on retina displays.
0.1 <= x <= 3
1
Output image format. JPEG offers smaller file sizes, PNG supports transparency, WebP provides modern compression.
jpeg
, png
, webp
"jpeg"
Image compression quality from 20 (lowest/smallest) to 100 (highest/largest). Only applies to JPEG and WebP formats.
20 <= x <= 100
80
Block advertisements and ad-related content from loading during screenshot capture
false
Automatically hide cookie consent banners and GDPR notices for cleaner screenshots
false
Block tracking scripts and analytics to improve page load speed and privacy
false
Newline-separated list of URL patterns to block during page load. Supports wildcards and regex patterns.
"*.doubleclick.net\n*.googletagmanager.com\n*/analytics/*"
Array of resource types to prevent from loading. Useful for faster page loads and cleaner screenshots.
["script", "stylesheet", "font"]
Set the preferred color scheme for websites that support dark/light mode theming
light
, dark
"light"
Accessibility setting to reduce animations and transitions for motion-sensitive users
no-preference
, reduce
"no-preference"
Whether to use cached version of the screenshot if available, or force a fresh capture
false
Cache expiration time in seconds. Minimum 1 hour (3600), maximum 1 year (31622400)
3600 <= x <= 31622400
3600
Custom cache key for grouping related screenshots. Auto-generated if not provided.
"homepage-desktop-light"
Custom HTTP headers to send with the request in 'Name: Value' format, one per line. Maximum 8KB total size.
8192
"User-Agent: MyBot/1.0\nAuthorization: Bearer token123\nX-Custom-Header: value"
Cookies to set before capturing the screenshot using Set-Cookie syntax (name=value; attributes), one per line. Maximum 4KB total size.
4096
"session_id=abc123; Domain=example.com; Path=/; Secure\nuser_pref=dark_mode; Max-Age=3600"
Bypass Content Security Policy restrictions that might prevent proper page rendering or script execution
false
Optimized screenshot response with enhanced CDN support
The response is of type file
.