Product

Website screenshot API

Use POST /v1/images when you need a png, jpeg, or webp screenshot of HTML or a public URL — not a PDF. Same Chromium engine as POST /v1/pdf. To raster existing PDF pages, use POST /v1/pdf/raster.

Exactly one of html or url. type defaults to png. Optional viewport, clip, fullPage, quality, and waitUntil.

Output

png (default), jpeg, or webp. Filename extension is validated against output type.

Controls

Set fullPage, clip box, viewport, deviceScaleFactor, quality, waitUntil, and timeout.

curl

Capture a full page PNG from a URL.

POST /v1/images
curl https://api.relaypdf.com/v1/images \
  -H "Authorization: Bearer pdf_live_..." \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com","options":{"fullPage":true}}' \
  --output page.png