Website screenshot or PDF of any URL
screenshotScreenshot API for AI agents: send {url} and get a JPEG, PNG, WebP or PDF of the page as base64 in JSON, with final URL, byte size and pixel size. Pick a desktop, mobile or tablet viewport, full page, dark mode, a delay or one element by CSS selector. It shows what a normal browser sees and does not get past bot protection (use unblock for those pages' text). A page that can't be captured, or renders blank, is not charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | absolute http or https URL of a public page, e.g. "https://example.com/" | |
| width | No | custom viewport width in pixels (overrides the device) | |
| device | No | viewport: desktop 1920x1080, desktop_hd 1366x768, mobile (phone), tablet | desktop |
| format | No | image or document format of the capture; pdf is always the full page | jpeg |
| height | No | custom viewport height in pixels (ignored with fullPage) | |
| delayMs | No | extra wait after the page loaded, in milliseconds | |
| fullPage | No | capture the whole scrollable page (height is capped at 16,384 px), not just the viewport | |
| selector | No | CSS selector: capture only the first matching element | |
| colorScheme | No | emulated prefers-color-scheme | |
| waitForSelector | No | CSS selector to wait for before capturing |