Developer docs
Screenshotor screenshot API documentation
Authenticate with X-Api-Key, create captures with POST /v1/screenshot, poll or webhook for completion, then download PNG, JPG, or WEBP assets. Standard captures cost 1 credit; AI vision captures cost 2 credits.
curl -X POST https://screenshotor.com/api/v1/screenshot \
-H "Content-Type: application/json" \
-H "X-Api-Key: YOUR_API_KEY" \
-d '{"url":"https://example.com","format":"webp","width":1440,"height":900,"fullPage":true}'Endpoints
Base URL: https://screenshotor.com/api
Create a screenshot job. Returns 202 for queued jobs, 200 for cache hits or sync captures.
Screenshot id, status, URL, format, dimensions, and temporary downloadUrl when already complete.
Read job status and metadata for one screenshot owned by the API key user.
Status, format, dimensions, file size, temporary downloadUrl when done, and errorMessage when failed.
Create or return the public temporary download URL for a completed screenshot.
downloadUrl, 48-hour expiry, format, and file size.
List recent screenshots for the authenticated user.
Screenshot array plus pagination metadata. limit is capped at 100.
Read monthly usage, quota, remaining captures, and daily breakdown.
Plan, quota, period, request counts, cost, remaining quota, and daily breakdown.
Request body parameters
Fields accepted by POST /v1/screenshot. Private and internal URLs are blocked during validation.
| Field | Type | Default | Description |
|---|---|---|---|
| url | string URL | required | Target page to capture. DNS and network checks reject private, localhost, link-local, and internal targets. |
| format | png | jpg | webp | webp | Output format. Use webp for compact browser screenshots, png for lossless images, and jpg for photos. |
| quality | integer | 80 | Compression quality for lossy image output. Ignored by png. |
| width | integer | 1920 | Viewport width in CSS pixels for desktop captures. |
| height | integer | 1080 | Viewport height in CSS pixels for desktop captures. |
| fullPage | boolean | false | Capture the full scrollable page instead of the visible viewport. |
| device | desktop | iphone-15 | ipad | desktop | Device preset. Mobile presets apply mobile viewport, scale factor, and mobile browser behavior. |
| delay | integer | 0 | Extra wait after page readiness and before capture. Useful for animations and late-rendered content. |
| waitForNetworkIdle | boolean | true | Try to wait for network quiet after DOM ready. The API continues if modern long-lived requests prevent idle. |
| waitUntil | load | domcontentloaded | networkidle | domcontentloaded | Navigation event to wait for. networkidle loads the page, then waits for network quiet on a best-effort basis. |
| waitForSelector | string | none | CSS selector that must be visible before capture. If it does not appear in time, the capture fails with errorCode selector_timeout (422). An invalid selector returns 400. |
| waitForSelectorTimeout | integer | 5000 | How long to wait for waitForSelector to become visible. |
| scrollToLoad | boolean | true when fullPage is true, otherwise false | Scroll the page to the bottom before capture to trigger lazy-loaded images and content, then return to the top. Skipped for PDF. |
| blockResources | boolean | false | Block heavy image, stylesheet, font, and media requests for faster structural captures. |
| darkMode | boolean | false | Set the browser color scheme preference to dark before loading the page. |
| userAgent | string | browser default | Override the browser user agent for compatibility testing or crawler-specific page variants. |
| cookies | array | none | Cookies to set before navigation. Each cookie supports name, value, domain, path, httpOnly, and secure. |
| blockAds | boolean | false | Block ad and ad-tracker requests (EasyList and uBlock Origin filter lists) and hide leftover ad slots. |
| blockCookieBanners | boolean | false | Remove cookie and consent banners: blocks consent-manager scripts, hides banners and overlays, and unlocks page scrolling. Same as bannerBlocking with mode hide. |
| blockChats | boolean | false | Remove live chat widgets and launchers (Intercom, Drift, HubSpot, Crisp, Tawk.to, Zendesk, LiveChat, Tidio, Freshchat and more). |
| bannerBlocking.enabled | boolean | false | Opt in to cookie or consent banner handling for this request only. |
| bannerBlocking.mode | hide | reject | accept | hide | Hide detected banners, click reject-style buttons, or click accept-style buttons before hiding remaining banners. |
| bannerBlocking.selectors | string[] | [] | Additional CSS selectors for site-specific banners. Defaults already cover common cookie and consent patterns. |
| aiVision.enabled | boolean | false | When true, sends the completed screenshot image to the configured OpenRouter vision model and stores the text result. |
| aiVision.prompt | string | required when enabled | Instruction for the vision model, such as Describe the image or Extract the pricing. |
| webhookUrl | string URL | none | Optional callback URL notified when an async screenshot job finishes. |
Example request with AI vision and webhooks
{
"url": "https://example.com",
"format": "webp",
"quality": 80,
"width": 1440,
"height": 900,
"fullPage": false,
"device": "desktop",
"delay": 0,
"waitForNetworkIdle": true,
"blockResources": false,
"darkMode": false,
"blockAds": true,
"blockCookieBanners": true,
"blockChats": true,
"aiVision": {
"enabled": true,
"prompt": "Describe the image and extract any visible pricing."
},
"webhookUrl": "https://your-app.example/webhooks/screenshots"
}MCP server for AI agents
Let Claude, Cursor or any MCP client take screenshots. Remote server (Streamable HTTP) at https://screenshotor.com/mcp, authenticated with your API key. Tools: take_screenshot, get_screenshot, list_screenshots and get_usage. Credits work like the REST API: 1 per new capture, cache hits and bot-wall pages are free.
Claude Code
claude mcp add --transport http screenshotor https://screenshotor.com/mcp \
--header "Authorization: Bearer YOUR_API_KEY"Cursor and other clients (mcp.json)
{
"mcpServers": {
"screenshotor": {
"url": "https://screenshotor.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}