Screenshot API for AI agents
Screenshot 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.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://agdata.shveik.dev/x402/screenshot
| Category | Everything else |
|---|---|
| Provider host | agdata.shveik.dev |
| Networks | eip155:137, eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 3 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"body": {
"format": "jpeg",
"url": "https://example.com/"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"colorScheme": {
"description": "emulated prefers-color-scheme",
"enum": [
"light",
"dark"
],
"type": "string"
},
"delayMs": {
"default": 0,
"description": "extra wait after the page loaded, in milliseconds",
"maximum": 5000,
"minimum": 0,
"type": "integer"
},
"device": {
"default": "desktop",
"description": "viewport: desktop 1920x1080, desktop_hd 1366x768, mobile (phone), tablet",
"enum": [
"desktop",
"desktop_hd",
"mobile",
"tablet"
],
"type": "string"
},
"format": {
"default": "jpeg",
"description": "image or document format of the capture; pdf is always the full page",
"enum": [
"jpeg",
"png",
"webp",
"pdf"
],
"type": "string"
},
"fullPage": {
"default": false,
"description": "capture the whole scrollable page (height is capped at 16,384 px), not just the viewport",
"type": "boolean"
},
"height": {
"description": "custom viewport height in pixels (ignored with fullPage)",
"maximum": 1200,
"minimum": 240,
"type": "integer"
},
"selector": {
"description": "CSS selector: capture only the first matching element",
"maxLength": 200,
"type": "string"
},
"url": {
"description": "absolute http or https URL of a public page, e.g. \"https://example.com/\"",
"maxLength": 2048,
"type": "string"
},
"waitForSelector": {
"description": "CSS selector to wait for before capturing",
"maxLength": 200,
"type": "string"
},
"width": {
"description": "custom viewport width in pixels (overrides the device)",
"maximum": 1920,
"minimum": 320,
"type": "integer"
}
},
"required": [
"url"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"headers": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"queryParams": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}