screenshot-url
Capture a live web page by URL as a PNG screenshot, or as an A4 vector PDF with format "pdf". Returns the rendered image plus a shareable CDN URL; PDF renders return the URL only. Consumes one credit per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Optional CSS to inject into the page before capture. | |
| dpi | No | Scale factor / device pixel ratio (1-4) for higher-resolution output. | |
| url | Yes | The fully-qualified URL of the page to capture (https://...). | |
| width | No | Viewport width in pixels (1-5000). Defaults to 1920. | |
| format | No | Output format. "png" (default) returns an image sized by width and height. "pdf" returns the page as an A4 portrait vector PDF with selectable, searchable text and automatic pagination; width, height, dpi, fullpage and selector are ignored. Use "pdf" to archive a page or produce a printable record. Use "png" for anything displayed at fixed pixel dimensions. | |
| height | No | Viewport height in pixels (1-5000). Defaults to 1080. | |
| fullpage | No | Capture the full scrollable page instead of just the viewport. | |
| ms_delay | No | Milliseconds to wait before capturing (1-5000). | |
| selector | No | Capture only the element matching this CSS selector. | |
| wait_for_selector | No | Wait until this CSS selector is present before capturing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Shareable CDN URL of the rendered file, at full resolution. | |
| format | Yes | The output format that was rendered. | |
| credits_remaining | Yes | Credits left on the plan after this render. |