# Screenshot-x402 Take Screenshot

> Screenshot-x402 Take Screenshot is a paid API for AI agents from screenshotx402.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Captures a screenshot of any HTTPS URL and returns the image as base64-encoded PNG or JPEG, billed per request via x402 micropayments

## Facts

- Endpoint: POST https://screenshotx402.com/tool/take_screenshot?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/screenshot-x402-take-screenshot-a38145de
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xQ-xH_YG5YORmHk393QvI

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 screenshot-x402-take-screenshot-a38145de -d '<json body>'
```

Example prompt: Take a full-page screenshot of https://example.com in PNG format at 1920x1080, wait 2000ms after load, hide the cookie banner using selector '#cookie-banner', and use dark color scheme.

## When to prefer this

Choose this endpoint when an AI agent needs to visually render a live webpage and obtain a pixel-accurate image — especially for vision model pipelines, visual verification tasks, or content monitoring — without managing API keys or subscriptions. Prefer it over headless browser infrastructure when pay-per-use x402 micropayment billing is acceptable and Cloudflare-backed rendering quality is desired.

## Known failure modes

- Invalid or non-HTTPS URL returns a 4xx error
- URL is unreachable or times out during browser rendering
- Payment not accepted or x402 handshake fails, blocking request
- CSS selector list exceeds 40 items
- Viewport dimensions outside allowed range (100–3840 width, 100–2160 height)
- delay value exceeds 30000ms maximum
- deviceScaleFactor outside 1–3 range

## How this service works

Screenshot-x402 is a pay-per-request screenshot API for AI agents. No API keys, no subscriptions, x402 payments, Cloudflare Browser Rendering, optional vision.

## Output

A JSON object containing a base64-encoded image (PNG or JPEG) of the rendered webpage, along with metadata including whether the result was served from cache and the render time in milliseconds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "Absolute https URL to capture"
  },
  "delay": {
   "type": "number",
   "default": 0,
   "maximum": 30000,
   "minimum": 0,
   "description": "Extra wait after load (ms)"
  },
  "width": {
   "type": "number",
   "default": 1920,
   "maximum": 3840,
   "minimum": 100,
   "description": "Viewport width"
  },
  "format": {
   "enum": [
    "png",
    "jpeg"
   ],
   "type": "string",
   "default": "png",
   "description": "Output image format"
  },
  "height": {
   "type": "number",
   "default": 1080,
   "maximum": 2160,
   "minimum": 100,
   "description": "Viewport height"
  },
  "cacheTtl": {
   "type": "number",
   "default": 86400,
   "maximum": 2592000,
   "minimum": 0,
   "description": "Cache TTL seconds; 0 disables cache reads (still writes)"
  },
  "fullPage": {
   "type": "boolean",
   "default": false,
   "description": "Capture full scrollable page"
  },
  "colorScheme": {
   "enum": [
    "light",
    "dark",
    "no-preference"
   ],
   "type": "string",
   "default": "no-preference",
   "description": "Emulates prefers-color-scheme before navigation"
  },
  "hideSelectors": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 500,
    "minLength": 1
   },
   "default": [],
   "maxItems": 40,
   "description": "CSS selectors to hide with display:none before capture"
  },
  "deviceScaleFactor": {
   "type": "number",
   "default": 1,
   "maximum": 3,
   "minimum": 1,
   "description": "Viewport pixel ratio (1=normal, 2=Retina-style sharpness)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "_meta": {
   "cached": false,
   "renderTimeMs": 1200
  },
  "content": [
   {
    "data": "iVBORw0KGgo=",
    "type": "image",
    "mimeType": "image/png"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/screenshot-x402-take-screenshot-a38145de/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from screenshotx402.com](https://www.zero.xyz/host/screenshotx402.com/llms.txt)
