# agdata Screenshot API

> agdata Screenshot API is a paid API for AI agents from agdata.shveik.dev, paid per call via x402, $0.01897/call, status unknown (last checked 2026-10-14).

Captures a screenshot of any URL and returns it as a base64-encoded image in JPEG, PNG, WebP, or PDF format

## Facts

- Endpoint: POST https://agdata.shveik.dev/v1/x402/screenshot?utm_source=zero.xyz
- Price: $0.01897/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agdata-screenshot-api-460c2534
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cgc-baZ3sBq7dxU0Wx98x

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agdata-screenshot-api-460c2534 -d '<json body>'
```

Example prompt: Take a full-page desktop screenshot of https://example.com in JPEG format at 1920x1080, wait 2000ms for the page to fully load, and give me the base64 image.

## When to prefer this

Choose this endpoint when you need a visual rendering of a live webpage — for thumbnail generation, visual QA, accessibility checks, or archiving a page's appearance. It is paid per call with no account required, making it ideal for ad-hoc or agent-driven workflows. Prefer this over HTML-scraping endpoints when the visual layout matters or when the page relies heavily on JavaScript rendering.

## Known failure modes

- URL is unreachable or returns an error — final URL may differ from input and image may be of an error page
- Page takes longer to load than the specified delayMs — content may be partially rendered
- CSS selector specified in waitForSelector or selector is not found on the page — may time out or return empty
- Invalid or unsupported URL format — request rejected
- Requested dimensions outside allowed range (width 320–1920, height 240–1200) — validation error
- Page requires authentication or is behind a paywall — screenshot shows login prompt

## How this service works

Unblock any URL as Markdown, or get search, social, maps, jobs and news as data. Paid per call in stablecoins over x402 or MPP, with no account.

## Output

Returns a JSON object containing: the image encoded as a base64 string (imageBase64), the image format and content type, the rendered width and height in pixels, the final URL after any redirects, the capture timestamp, whether full-page was captured, and the file size in bytes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "maxLength": 2048
  },
  "width": {
   "type": "integer",
   "maximum": 1920,
   "minimum": 320
  },
  "device": {
   "enum": [
    "desktop",
    "desktop_hd",
    "mobile",
    "tablet"
   ],
   "type": "string"
  },
  "format": {
   "enum": [
    "jpeg",
    "png",
    "webp",
    "pdf"
   ],
   "type": "string"
  },
  "height": {
   "type": "integer",
   "maximum": 1200,
   "minimum": 240
  },
  "delayMs": {
   "type": "integer",
   "maximum": 5000,
   "minimum": 0
  },
  "fullPage": {
   "type": "boolean"
  },
  "selector": {
   "type": "string",
   "maxLength": 200
  },
  "colorScheme": {
   "enum": [
    "light",
    "dark"
   ],
   "type": "string"
  },
  "waitForSelector": {
   "type": "string",
   "maxLength": 200
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 66615,
  "width": 1920,
  "format": "jpeg",
  "height": 1080,
  "finalUrl": "https://…",
  "fullPage": false,
  "capturedAt": "2026-10-…",
  "contentType": "image/jp…",
  "imageBase64": "/9j/4AAQ…"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agdata-screenshot-api-460c2534/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agdata.shveik.dev](https://www.zero.xyz/host/agdata.shveik.dev/llms.txt)
