# Screenshot API – HTML/URL to PNG/PDF/Text

> Screenshot API – HTML/URL to PNG/PDF/Text 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, PDF, or extracted text content via a paid POST request

## Facts

- Endpoint: POST https://screenshot-api-production-5291.up.railway.app/html?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-html-url-to-png-pdf-text-3e9a2924
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kVM8-WqvsMrmPi3uJP0cp

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-html-url-to-png-pdf-text-3e9a2924 -d '<json body>'
```

Example prompt: Can you take a screenshot of https://example.com and give me a PNG image of what the page looks like right now?

## When to prefer this

Choose this endpoint when you need a visual or document capture of a live web page — especially for archiving, monitoring page appearance, or extracting readable text from a URL — and you want per-request micropayment pricing via x402 on Base rather than a subscription model.

## Known failure modes

- Invalid or unreachable URL returns an error
- Timeout if the target page is slow to load
- Payment failure if USDC balance on Base is insufficient
- Private or auth-gated pages may render login screens instead of content
- Malformed JSON body missing the required 'url' field returns a 400 error

## How this service works

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

## Output

Returns a rendered PNG image, PDF file, or extracted plain text depending on the requested output format, representing the visual or textual state of the provided URL at the time of the request.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/screenshot-api-html-url-to-png-pdf-text-3e9a2924/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)
