Screenshot

GET /api/v1/screenshot

Render any URL in a real browser and capture it as an image — full-page or above-the-fold, desktop or mobile. Ideal for previews, visual diffs and reports.

Query parameters

NameTypeDescription
url requiredstringThe page to capture.
device optionalstringmobile (default) or desktop.

Request

Response

200 · application/json
  1. {
  2. "url": "https://example.com",
  3. "device": "mobile",
  4. "fetchedUrl": "https://example.com/",
  5. "width": 412,
  6. "height": 2284,
  7. "image": "data:image/webp;base64,UklGRiY…"
  8. }

Response fields

FieldTypeDescription
devicestringThe device viewport used (mobile or desktop).
fetchedUrlstringThe final URL after any redirects.
width / heightintegerRendered image size in pixels.
imagestringA base64 data URI (WebP, or JPEG depending on the upstream render) — embed it directly or decode it to a file.
This endpoint renders the page in a headless browser, so responses take a little longer than the static endpoints. See Errors.