Skip to main content
Two endpoints turn a page into media instead of text: Images lists every image on a page with its metadata, and Screenshot captures the rendered page as a PNG. Both are synchronous and cost one credit.

Images

POST /v1/web/images harvests every image on a page and returns it with its metadata — resolved absolute source, alt text, and declared dimensions. Use it to build an image index, pull product photos, or find the largest asset on a page.

Example request

Example response

Options

string
required
The URL to harvest images from. Must be http(s).
number
Serve from a recent capture of this URL if it’s younger than this many milliseconds. Omit for the default window; 0 always fetches fresh. Capped at 7 days (604800000 ms).

Response fields

string
The URL you requested.
string
The final URL after any redirects.
object[]
Every image found on the page. Each has src (resolved to absolute), plus alt, width, and height — any of which may be null when the page doesn’t declare it.

Screenshot

POST /v1/web/screenshot renders a page and captures it as a PNG, returned base64-encoded in the response. Use it for visual snapshots, archiving, or feeding a page’s appearance to a vision model.

Example request

Example response

image is a base64-encoded PNG string. Decode it to bytes to write the file, as the examples above show.

Options

string
required
The URL to screenshot. Must be http(s).
boolean
default:"false"
Capture the entire scrollable page instead of just the viewport.
number
Extra milliseconds to let the page settle before capture. Up to 30000.
number
Overall time budget for the request, in milliseconds. Between 1000 and 120000.

Response fields

string
The URL you requested.
string
The final URL after any redirects.
number
HTTP status of the captured page.
string
The screenshot as a base64-encoded PNG string.

Billing

Images and Screenshot each cost 1 credit, charged only on success. Each response reports what it consumed. See Credits.

Scrape

Clean Markdown and structured data from a URL.

Caching

How maxAge reuses a recent capture.

Credits

Pricing and charge-on-success.

API Reference

Full /v1/web/images and /v1/web/screenshot schemas.