Create Screenshot or PDF
Captures a screenshot or PDF of a specified URL with customizable options.
Token Cost
Base cost: 1 token
Additional costs:
- Anti-Bot Mode: +1 token
- Specific Region: +1 token
Authorizations
API key authentication. Get your API key at https://snapopa.com/dashboard
Body
URL to capture
2048Raw or base64-encoded HTML to render. Mutually exclusive with url.
1048576Return JSON metadata or the raw file.
json, file Output file format. One of: png, jpeg, webp, pdf.
png, jpeg, webp, pdf Reuse cached results to avoid duplicate captures.
Viewport dimensions.
Browser prefers-color-scheme value.
light, dark, no-preference Image quality for JPEG and WebP. Ignored for other formats.
1 <= x <= 100CDN storage lifetime in seconds. Ignored when persistence is enabled.
60 < x <= 2592000Capture the full scrollable page. Overrides viewport height.
Process in the background and return immediately.
Long-term storage with optional auto-refresh.
Navigation timeout in milliseconds.
5000 <= x <= 120000Page load state to wait for before capturing.
load, domcontentloaded, networkidle, commit Max time in milliseconds to wait for images to load. Returns early if all images load sooner.
0 <= x <= 15000Extra wait in milliseconds after page load before capturing. Useful for animations or delayed content.
0 <= x <= 15000Geographic region for browser rendering.
auto, us-east, us-west, eu-west, eu-central, asia-east, asia-southeast Use stealth providers to bypass bot detection.
Block ads, trackers, and media to speed up captures.