# Rasterly Screenshot API

> Rasterly Screenshot API is a paid API for AI agents from rasterly-x402-production.up.railway.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Renders any URL as a PNG, JPEG, or PDF screenshot via headless browser and returns raw image bytes

## Facts

- Endpoint: GET https://rasterly-x402-production.up.railway.app/v1/screenshot
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rasterly-screenshot-api-e3cd3d5b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Dbz8N3WMAorXphhmXSPxv

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 rasterly-screenshot-api-e3cd3d5b
```

Example prompt: Can you take a full-page PNG screenshot of https://news.ycombinator.com at 1280px wide so I can see what it looks like right now?

## When to prefer this

Choose this endpoint when you need a pixel-accurate visual rendering of a live webpage — especially when downstream tasks require an image or PDF rather than raw HTML. Ideal for visual QA, archiving, generating thumbnails, or feeding page screenshots to vision-capable LLMs. Prefer this over HTML-scraping endpoints when layout, styling, and visual fidelity matter, or when the target page is heavily JavaScript-rendered.

## Known failure modes

- Target URL unreachable or returns an error — browser may capture an error page or time out
- Invalid or missing url parameter — request rejected
- Unsupported format value — only png, jpeg, pdf accepted
- Timeout if the target page takes too long to load
- Payment not received or x402 handshake fails — request blocked
- quality parameter ignored for PNG format (JPEG only)

## How this service works

The web-rendering layer for AI agents, sold per-call over the x402 payment protocol. Turn any URL into a screenshot, a PDF, or clean LLM-ready Markdown. No API keys, no accounts.

## Output

Raw binary bytes of the rendered page in the requested format (PNG, JPEG, or PDF), returned with the appropriate content-type header (e.g. image/png). Not JSON — the response body is the image or document file itself.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string",
       "description": "Target URL (encoded)"
      },
      "scale": {
       "type": "number",
       "description": "Device scale factor, e.g. 2 for retina"
      },
      "width": {
       "type": "number",
       "description": "Viewport width px (default 1280)"
      },
      "format": {
       "enum": [
        "png",
        "jpeg",
        "pdf"
       ],
       "type": "string",
       "description": "Output format (default png)"
      },
      "height": {
       "type": "number",
       "description": "Viewport height px (default 800)"
      },
      "quality": {
       "type": "number",
       "description": "JPEG quality 1-100"
      },
      "full_page": {
       "type": "string",
       "description": "Capture the full scroll height (true|false)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "response body is the raw rendered image/PDF bytes, not JSON",
  "content_type": "image/png"
 }
}
```

## More

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