Screenshot API
Capture pixel-perfect website screenshots from any URL with one call.
Choose viewport dimensions or full-page capture, wait for dynamic content, handle popups, select a light or dark color scheme, and control cache freshness.
What You Get
Request a screenshot alongside any other Scrape output. The image is returned as a data URL.
Full-page or viewport
Capture entire page or visible area
Capture controls
Set wait time, popup cleanup, theme, and cache age
Custom viewport
Capture responsive layouts at a width and height you choose
Image data URL
Receive PNG, JPEG, or WebP image data directly
How it works
We use headless Chrome to render websites pixel-perfectly.
Send a URL
With optional viewport, full-page, wait, popup, and theme controls
Headless Chrome renders
Full JavaScript support, animations, and dynamic content
Image processed
Encoded in the image format you select
Image data returned
Clean, high-quality image ready for immediate use
API response
Illustrative screenshot response; the sample image data is a placeholder
POST /v1/web/scrapeRequest body
{
"url": "https://example.com",
"formats": {
"screenshot": true
},
"screenshotParams": {
"area": "viewport",
"format": "png"
}
}Example response
{
"url": "https://example.com/",
"html": {
"requested": false,
"success": null,
"data": null
},
"markdown": {
"requested": false,
"success": null,
"data": null
},
"screenshot": {
"requested": true,
"success": true,
"data": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+aD1sAAAAASUVORK5CYII="
},
"images": {
"requested": false,
"success": null,
"data": null
},
"bytes": {
"requested": false,
"success": null,
"data": null
},
"parsed": {
"type": "custom",
"requested": false,
"success": null,
"data": null
},
"json": {
"requested": false,
"success": null,
"data": null
},
"highlights": {
"requested": false,
"success": null,
"data": null
},
"product": {
"requested": false,
"success": null,
"data": null
},
"metadata": {
"title": "Web context for AI",
"language": "en"
},
"cache_metadata": {
"status": "miss",
"age_ms": 0
},
"request_id": "3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91"
}Frequently asked questions
Common questions about the Context.dev Screenshot API.
Am I billed for failed requests?
Can the screenshot API capture full-page screenshots?
Can I choose the image format or quality?
Can I use the screenshot API for OG images and link previews?
How do I take a screenshot of a website with the API?
Does the API support mobile emulation?
How is this a Urlbox / ApiFlash / ScreenshotOne alternative?
Is the screenshot API free?
Am I billed for failed requests?
How do I take a screenshot of a website with the API?
Can the screenshot API capture full-page screenshots?
Does the API support mobile emulation?
Can I choose the image format or quality?
How is this a Urlbox / ApiFlash / ScreenshotOne alternative?
Can I use the screenshot API for OG images and link previews?
Is the screenshot API free?
Ship an agent that actually knows things.
Free tier, 10-minute integration, and the same API powering agents at Mintlify, daily.dev, and Propane. No credit card to start.













