# Screenshot API – URL to PDF Renderer

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

Converts a URL into a downloadable PDF document with configurable page format, orientation, and margins, billed per-request via x402 on Base.

## Facts

- Endpoint: POST https://screenshot-api-production-5291.up.railway.app/pdf?utm_source=zero.xyz
- Price: $0.02/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-url-to-pdf-renderer-f799b365
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GW9WuUU3tBPG4BmLKMfhJ

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-url-to-pdf-renderer-f799b365 -d '<json body>'
```

Example prompt: Can you convert this webpage to a PDF in A4 landscape format? The URL is https://example.com/report — I want standard margins.

## When to prefer this

Choose this endpoint when you need a server-side, pay-per-use PDF rendering of a public or accessible URL with configurable page size and orientation, especially when you want to avoid managing a headless browser yourself. It is ideal for one-off or low-volume PDF generation where spinning up Puppeteer or Playwright infrastructure is overkill. Prefer it over screenshot endpoints when PDF (not PNG) output is specifically required.

## Known failure modes

- URL is unreachable or returns non-200 status — PDF may be blank or error response returned
- Invalid or malformed URL causes a 400 Bad Request
- Page renders with missing assets (images, fonts) due to CORS or auth restrictions on the target site
- Payment failure via x402 results in 402 Payment Required before rendering begins
- Timeout if the target URL is very slow to load

## How this service works

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

## Output

A binary PDF file (application/pdf) rendered from the target URL at the requested page size, orientation, and margin settings, ready to save or distribute.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string"
  },
  "format": {
   "type": "string"
  },
  "margin": {
   "type": "string"
  },
  "landscape": {
   "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-url-to-pdf-renderer-f799b365/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)
