API Reference

All endpoints require an X-API-Key header. Get your API key from the dashboard.

POST/v1/screenshot

Render a URL or HTML string to PNG or JPEG.

{
  "url": "https://example.com",
  "format": "png",
  "viewport": { "width": 1280, "height": 720 },
  "full_page": false,
  "wait_for": "networkidle"
}
Returns raw image bytes with Content-Type: image/png or image/jpeg.
POST/v1/pdf

Render a URL or HTML string to PDF.

{
  "url": "https://example.com",
  "format": "A4",
  "orientation": "portrait",
  "print_background": true
}
Returns raw PDF bytes with Content-Type: application/pdf.
GET/v1/jobs/{job_id}

Poll the status of an async render job.

{
  "job_id": "...",
  "status": "completed",
  "result_url": "/v1/jobs/.../result",
  "expires_at": "2026-03-25T10:00:00Z"
}
GET/v1/jobs/{job_id}/result

Download the result of a completed async job. Valid for 24 hours.

Returns raw bytes of the rendered file.