Skip to navigation

Capture a screenshot with Browserless

View as Markdown

Relays to https://production-sfo.browserless.io/screenshot, injecting the token query parameter and forcing timeout=30000. Send url or html (not both); options carries Puppeteer-style screenshot settings (type: png/jpeg/webp, fullPage, quality, clip, and so on). See the Browserless tag description above for the full field policy.

Authentication

AuthorizationBearer

Your per-client bearer token — the API key the gateway issued to you. Present it in Authorization: Bearer <token> form. A token that is missing, unknown, or revoked draws a 401. Before the call is sent upstream the token is removed (stripped, or swapped for the upstream’s own credential); it never makes it past the gateway.

Request

This endpoint expects a map from strings to any.

Response

The captured image — image/png by default, or image/jpeg/image/webp when options.type requests it — relayed byte-for-byte.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error