Browser Screenshot
$0.01per callbrowser.screenshotCapture a screenshot of a webpage or HTML content
Endpoint
POST /v1/tools/browser.screenshot/tasksInput
| Field | Type | Required | Description |
|---|---|---|---|
| url | string | no | URL to capture |
| html | string | no | HTML content to render |
| width | integer | no | Viewport width |
| height | integer | no | Viewport height |
| full_page | boolean | no | Capture full scrollable page |
| format | string | no | |
| quality | integer | no | Quality for jpeg/webp (1-100) |
| transparent | boolean | no | Transparent background (png only) |
| wait | string | no | When to capture |
Output
| Field | Type | Description |
|---|---|---|
| file_id | string | Stored artifact ID |
| file_url | string | 24-hour signed URL for the rendered image |
| content_type | string | Artifact MIME type |
| file_url_notes | string | Notes about the signed URL lifetime |
| expires_at | string | Signed URL expiry timestamp |
| expires_in_days | integer | Signed URL expiry in days |
| width | integer | |
| height | integer | |
| bytes | integer |
Example
Request
{
"url": "https://example.com",
"width": 1280,
"full_page": true
}Response
{
"file_id": "file_abc123def4567890",
"file_url": "https://1234567890abcdef.r2.cloudflarestorage.com/agentutil/browser/123/screenshot-file_abc123def4567890.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=86400&X-Amz-Signature=...",
"content_type": "image/png",
"file_url_notes": "Signed URL will expire in 24 hours. If you need it for longer then download it and store it somewhere",
"expires_at": "2026-03-12T08:00:00.000Z",
"expires_in_days": 1,
"width": 1280,
"height": 2400,
"bytes": 145832
}