Screenshot of a web page

GET https://api.api.sh/web/v1/screenshot
2 credits / call web data try it in the playground →

full_page=true captures the whole scrollable page instead of the viewport. Every response includes credits_used: the credits this call cost. Cost: 2 credits; setting country adds 5 (the page then loads through that country).

Parameters

nametypedescription
urlrequired string Public http(s) URL of the page (a bare domain works too). Example: https://example.com
full_page boolean Capture the whole page, not only the visible part. Default: false
width integer Viewport width in pixels. Default: 1280
height integer Viewport height in pixels. Default: 800
format png | jpeg Image format. Default: png
quality integer JPEG quality. Default: 80
delay integer Extra milliseconds to wait after the page loaded. Default: 0
country string Two-letter country to view the page from. Default: US

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/web/v1/screenshot?url=https%3A%2F%2Fexample.com" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.