Capture a screenshot of a website
Takes a screenshot of any URL and returns it as a binary image or JSON with base64 data URI. Set response_type=json for AI agent integrations. Supports device emulation, dark mode, ad blocking, cookie banner removal, and caching.
Request
- Base URL: https://app.snap-render.com
- URL: https://app.snap-render.com/v1/screenshot
- Auth: API key in header X-API-Key
Query parameters
The URL to capture (must be http or https)
Output image format. Use png for lossless quality, jpeg/webp for smaller files, pdf for documents.
Viewport width in pixels (320-3840)
Viewport height in pixels (200-10000)
Capture the entire scrollable page instead of just the viewport
Image quality for JPEG and WebP (1-100). Ignored for PNG and PDF.
Milliseconds to wait after page load before capturing. Useful for pages with animations or lazy-loaded content.
Emulate prefers-color-scheme: dark CSS media feature
Block advertisements and trackers for cleaner screenshots
Remove cookie consent banners and GDPR overlays
Device preset for mobile/tablet emulation. Sets viewport size, user agent, and device scale factor.
Comma-separated CSS selectors to hide before capturing (e.g., '.banner,.popup')
CSS selector to click before capturing (e.g., to dismiss a modal or expand content)
Custom user agent string to use for the request
Return cached result if available. OFF by default: set true to enable caching. Cached hits are free but may be up to 24h old.
Cache lifetime in seconds (default 24h). Cached screenshots older than this are recaptured. Max depends on plan.
Response format. 'binary' returns raw image bytes with Content-Type header (default). 'json' returns a JSON object with a base64 data URI in the 'image' field — recommended for AI agents, ChatGPT Actions, and programmatic integrations.
Response
Screenshot captured successfully
Changes
No recorded changes to this operation across all 1 revision of this API.