Skip to main content
Loads the page in the browser engine and returns a PNG of the viewport, or of the whole scrollable page with full_page. It is billed like a browser scrape plus the proxy tier, the same as POST /v1/web/scrape with screenshot: true. If the page loads but no screenshot comes back, the call returns 502 and costs 0 credits.

Request Body

string
required
The page to capture. Must be a valid HTTP or HTTPS URL.
boolean
default:false
Capture the whole scrollable page instead of only the viewport.
integer
Viewport width in pixels. Range: 320 – 3840.
integer
Viewport height in pixels. Range: 240 – 4320.
string
CSS selector to wait for before capturing, e.g. "#main".
string
ISO 3166-1 alpha-2 country code for the proxy exit, e.g. "US".
string
default:"simple"
Proxy pool: simple, premium or ultra. Same pricing as on /v1/web/scrape.
Unknown fields are rejected with 422.

Response

boolean
true when a screenshot was captured.
string
The final URL after redirects.
integer
HTTP status code of the captured page.
string
Always image/png.
string
The PNG image, base64-encoded (no data: prefix).
string
Browser engine that rendered the page.
integer
Credits charged for this request.
integer
Total time in milliseconds.

Examples

Error Responses