# Screenshot API

> Screenshot API is a paid API for AI agents from screenshot-api-production-5291.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Renders a given URL to a PNG screenshot or PDF image, paid per request via x402 on Base

## Facts

- Endpoint: POST https://screenshot-api-production-5291.up.railway.app/screenshot?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/screenshot-api-74f1d587
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wnehKRcJrgIdhKZv90qxF

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-api-74f1d587 -d '<json body>'
```

Example prompt: Can you take a full-page screenshot of https://example.com at 1280x800 resolution and give me the PNG?

## When to prefer this

Choose this endpoint when you need a pay-per-use, programmatic screenshot or PDF capture of any public URL without managing a browser infrastructure yourself. It is ideal for one-off or low-volume captures billed precisely per call via USDC on Base (x402 protocol), making it cost-effective for agents that capture pages sporadically rather than at high volume.

## Known failure modes

- URL is unreachable or returns an error — rendering fails with no image returned
- Invalid or malformed URL input causes a 400-level error
- Payment via x402 on Base fails or is insufficient — request is rejected before rendering
- Timeout if the target page takes too long to load
- Very long or complex pages may produce large binary payloads

## How this service works

Render URLs to PNG screenshots, PDFs, or extract text. Pay per request via x402 on Base.

## Output

A binary response containing the rendered PNG image or PDF of the requested URL, sized according to the specified width, height, and fullPage parameters.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string"
  },
  "width": {
   "type": "integer"
  },
  "height": {
   "type": "integer"
  },
  "fullPage": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "string",
 "format": "binary"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/screenshot-api-74f1d587/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from screenshot-api-production-5291.up.railway.app](https://www.zero.xyz/host/screenshot-api-production-5291.up.railway.app/llms.txt)
