Web

Website Screenshot API

Render public pages as PNG, JPG, JPEG, WebP, GIF, JP2, TIFF, AVIF, HEIF, PDF, HTML, or Markdown, with JSON metadata, direct-file, and empty response modes.

POST/v1/web/screenshot/results🏷️$0.002 / capture · Rate limit: 60 req/min
Authorization*string
header

Bearer token ('pd_live_...') generated from Pulldata Developer Settings (e.g. 'Bearer pd_live_...'). The legacy x-api-key header remains supported.

Content-Type*string
header

application/json

Parameters
url*stringrequired
body

The target public webpage URL to render and capture (must start with http:// or https://).

required · max 4096 chars
formatstringoptional
body

Output format. Options: 'png', 'jpg', 'jpeg', 'webp', 'gif', 'jp2', 'tiff', 'avif', 'heif', 'pdf', 'html', or 'markdown'.

default 'png'
response_typestringoptional
body

Response behavior. 'json' returns metadata and a signed URL; 'by_format' returns generated bytes when the synchronous wait completes; 'empty' returns no success body. If processing exceeds the synchronous wait, the API returns HTTP 202 and the same job remains available through polling.

'json' | 'by_format' | 'empty' · default 'json'
widthintegeroptional
body

Browser viewport width in pixels.

min 320 · max 3840 · default 1440
heightintegeroptional
body

Browser viewport height in pixels.

min 200 · max 2160 · default 900
full_pagebooleanoptional
body

When true, scrolls and captures the complete full-page document height.

default true
qualityintegeroptional
body

Image compression quality for JPG, JPEG, WebP, JP2, AVIF, and HEIF output formats (1-100).

min 1 · max 100 · default 85
device_scale_factornumberoptional
body

Device pixel ratio (1 for standard display, 2 for Retina / HiDPI display).

min 1 · max 3 · default 1
wait_untilstringoptional
body

Page lifecycle event to wait for before capturing. Options: 'load', 'domcontentloaded', 'networkidle', 'commit'.

default 'networkidle'
delay_msintegeroptional
body

Additional wait delay in milliseconds after page load to allow JavaScript animations and fonts to settle.

min 0 · max 10000 · default 2000
timeout_msintegeroptional
body

Maximum navigation and render timeout in milliseconds.

min 1000 · max 120000 · default 45000
dark_modebooleanoptional
body

Emulate 'prefers-color-scheme: dark' media feature on the rendered page.

default false
selectorstringoptional
body

CSS selector targeting an individual DOM element to clip and capture (e.g. '#hero', '.pricing-card'). Not supported with format: pdf.

optional · max 500 chars
omit_backgroundbooleanoptional
body

Hide default white page background to produce transparent background. Supported only for PNG and WebP formats.

default false
Response Fields20
success
boolean

Indicates whether the screenshot was captured successfully.

jobId
string

Unique identifier for the capture job.

status
string

Execution status ('DONE', 'RUNNING', 'FAILED').

completed
boolean

Whether processing is fully finished.

walletDeductedUSD
number

USD balance deducted from wallet for this capture.

screenshot.source_url
string

Original target URL submitted for rendering.

screenshot.final_url
string

Final URL after safe redirects.

screenshot.format
string

Requested image, document, or text output format.

screenshot.response_type
string

Requested response behavior: json, by_format, or empty.

screenshot.width
integer

Rendered image pixel width.

screenshot.height
integer

Rendered image pixel height.

screenshot.full_page
boolean

Whether full-page scroll capture was enabled.

screenshot.size_bytes
integer

Generated asset size in bytes.

screenshot.mime_type
string

MIME type of the selected image, PDF, HTML, or Markdown output.

screenshot.downloadUrl
string

Direct authenticated CDN download URL for the screenshot asset.

screenshot.downloadExpiresIn
integer

Expiry lifetime of the signed download URL in seconds (e.g. 3600).

screenshot.captured_at
string

ISO 8601 timestamp when the screenshot was generated.

downloadUrl
string

Direct CDN download URL for the screenshot artifact.

pollUrl
string

Polling endpoint URL if the job is handled asynchronously.

error
string | null

Error message if the capture failed, otherwise null.

curl -X POST "https://pdb-dev.pulldata.io/v1/web/screenshot/results" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://stripe.com",
    "format": "png",
    "response_type": "json",
    "width": 1440,
    "height": 900,
    "full_page": true,
    "quality": 85,
    "device_scale_factor": 1,
    "wait_until": "networkidle",
    "delay_ms": 2000,
    "dark_mode": false
  }'
Responses
Website screenshot capture result payload
{
  "success": true,
  "jobId": "job_scr_9f8e7d6c",
  "status": "DONE",
  "completed": true,
  "walletDeductedUSD": 0.002,
  "screenshot": {
    "url": "https://stripe.com",
    "format": "png",
    "width": 1440,
    "height": 900,
    "full_page": true,
    "file_size_bytes": 482190,
    "content_type": "image/png",
    "downloadUrl": "https://cdn.pulldata.io/screenshots/2026/09/job_scr_9f8e7d6c.png?token=exp_1725187200",
    "downloadExpiresIn": 3600,
    "captured_at": "2026-09-01T08:00:00.000Z"
  },
  "pollUrl": "/v1/web/screenshot/results/job_scr_9f8e7d6c",
  "downloadUrl": "https://cdn.pulldata.io/screenshots/2026/09/job_scr_9f8e7d6c.png?token=exp_1725187200",
  "error": null
}