Skip to main content
Capture a public web page as a 1280 × 800 viewport JPEG. Use the same API key and credit balance as the other PagePith endpoints.

Capture a page

A successful response contains the image bytes with Content-Type: image/jpeg. The X-Final-Url response header identifies the URL after redirects.
This endpoint returns a JPEG, not JSON. Save the response as an image or read it as a binary buffer.

Use JavaScript

Credits and limits

Each successful capture costs 5 credits. Failed captures are not charged. Starter and free accounts need at least 5 available credits before a capture starts. Pro and Business plans can use their configured metered overage. The endpoint captures the visible viewport at 1280 × 800 pixels. It does not currently support full-page capture, custom viewport sizes, or other image formats. Only public HTTP and HTTPS URLs are accepted.

Errors

Error responses contain JSON. See the screenshot API reference for the request and response details.