# x402-tools Screenshot API

> x402-tools Screenshot API is a paid API for AI agents from x402.nichospt.net, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-10).

Captures a screenshot of any public URL and returns the image as PNG or JPEG binary data, paid per-call in USDC via x402.

## Facts

- Endpoint: POST https://x402.nichospt.net/screenshot?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-tools-screenshot-api-0c482149
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OmbDsAuGSn3iU7Fk7kf7K

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 x402-tools-screenshot-api-0c482149 -d '<json body>'
```

Example prompt: Take a full-page screenshot of https://example.com at 1280x800 resolution and give me the result as a PNG — wait until the network is fully idle before capturing.

## When to prefer this

Use this endpoint when you need a visual rendering of a live webpage — e.g. to visually verify a site's appearance, generate a preview thumbnail, or inspect layout without running a local browser. Prefer this over HTML scraping when the visual output itself matters, or when JavaScript-heavy pages must be fully rendered before capture. The pay-per-call x402 model means no subscription is needed — ideal for infrequent or agent-driven use.

## Known failure modes

- URL is unreachable or returns a non-2xx status — capture may fail or return a blank/error page
- Private or localhost URLs will not be accessible from the server
- Very long pages with full_page=true may timeout or exceed memory limits
- Invalid URL format returns a validation error
- JPEG quality parameter is ignored when format is PNG
- Extremely high resolutions (near max 3840x2160) may increase latency or fail

## How this service works

Pay-per-call utility APIs for AI agents, settled in USDC via the x402 protocol.

## Output

Returns a binary image (PNG or JPEG) of the rendered webpage at the requested dimensions. The response is the raw image data, not a URL. The image reflects the page state at the specified wait_until event (e.g. networkidle2 means all network activity has settled before capture).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Public http(s) URL to capture"
  },
  "width": {
   "type": "integer",
   "default": 1280,
   "maximum": 3840,
   "minimum": 320
  },
  "format": {
   "enum": [
    "png",
    "jpeg"
   ],
   "type": "string",
   "default": "png"
  },
  "height": {
   "type": "integer",
   "default": 800,
   "maximum": 2160,
   "minimum": 240
  },
  "quality": {
   "type": "integer",
   "default": 80,
   "maximum": 100,
   "minimum": 1,
   "description": "JPEG quality (ignored for PNG)"
  },
  "full_page": {
   "type": "boolean",
   "default": false,
   "description": "Capture the full scroll height"
  },
  "wait_until": {
   "enum": [
    "load",
    "domcontentloaded",
    "networkidle0",
    "networkidle2"
   ],
   "type": "string",
   "default": "networkidle2"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": "<binary image/png>"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-tools-screenshot-api-0c482149/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.nichospt.net](https://www.zero.xyz/host/x402.nichospt.net/llms.txt)
