Screenshot All docs

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 credits

Loads the page in a browser and returns a PNG, JPEG or WebP. 5 credits.

ParameterInTypeRules
url *querystringmax 2048 chars · Page to read. http or https, public hosts only.
widthqueryinteger320 to 3840 · default 1280
heightqueryinteger200 to 2160 · default 800
full_pagequerybooleandefault false · Capture the whole page, up to 16,000 px tall.
formatquerystringone of png, jpeg, webp · default png
qualityqueryinteger1 to 100 · default 80 · jpeg and webp only.
darkquerybooleandefault false · Ask the page for its dark color scheme.
delay_msqueryinteger0 to 5000 · default 0 · Wait after load before capturing.
responsequerystringone of binary, json · default binary · binary returns the image; json returns base64 inside the usual envelope.
GET/v1/screenshot
curl 'https://api.apifor.dev/v1/screenshot?url=' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "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 credits
  • 422Image larger than 15 MB
  • 502The page or the browser failed (upstream status, too many redirects, DNS)
  • 503Browser Rendering is busy or unavailable
  • 504The page took longer than 15 seconds

Error handling · Rate limits · Prices