Screenshot API Reference
One route. Base URL https://api.apifor.dev, authenticated with x-api-key. Failed calls are not charged. Overview, limits and sources are on the Website screenshot API page.
GET
/v1/screenshot5 creditsLoads the page in a browser and returns a PNG, JPEG or WebP. 5 credits.
| Parameter | In | Type | Rules |
|---|---|---|---|
| url * | query | string | max 2048 chars · Page to read. http or https, public hosts only. |
| width | query | integer | 320 to 3840 · default 1280 |
| height | query | integer | 200 to 2160 · default 800 |
| full_page | query | boolean | default false · Capture the whole page, up to 16,000 px tall. |
| format | query | string | one of png, jpeg, webp · default png |
| quality | query | integer | 1 to 100 · default 80 · jpeg and webp only. |
| dark | query | boolean | default false · Ask the page for its dark color scheme. |
| delay_ms | query | integer | 0 to 5000 · default 0 · Wait after load before capturing. |
| response | query | string | one of binary, json · default binary · binary returns the image; json returns base64 inside the usual envelope. |
curl 'https://api.apifor.dev/v1/screenshot?url=' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": {
"url": "https://en.wikipedia.org/wiki/Tide_table",
"final_url": "https://en.wikipedia.org/wiki/Tide_table",
"format": "png",
"content_type": "image/png",
"width": 1280,
"height": 800,
"full_page": false,
"bytes": 182344,
"image_base64": "iVBORw0KGgoAAAANSUhEUgAABQAAAAMgCAIAAAD...",
"taken_at": "2026-11-28T15:50:12.410Z"
}
}200The image, or JSON with base64 when response=json (image_base64 shortened here).400Invalid parameters or a blocked URL (private address, bad scheme or port)402Not enough credits422Image larger than 15 MB502The page or the browser failed (upstream status, too many redirects, DNS)503Browser Rendering is busy or unavailable504The page took longer than 15 seconds