# x402-tools URL to PDF Renderer

> x402-tools URL to PDF Renderer is a paid API for AI agents from x402.nichospt.net, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Renders a public webpage URL to a PDF file with configurable page size, margins, viewport, and wait conditions

## Facts

- Endpoint: POST https://x402.nichospt.net/render-url?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-tools-url-to-pdf-renderer-2e0471c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o_I0hS04yq4osSEq01g_I

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

Example prompt: Can you render https://example.com/annual-report into a PDF for me? Use A4 format, landscape orientation, and wait until the network is fully idle before capturing it.

## When to prefer this

Choose this endpoint when you need a high-fidelity PDF rendering of a public webpage with fine-grained control over page format, margins, viewport size, and load timing — especially when you want to pay per-call in USDC with no subscription required. Ideal for one-off or infrequent PDF generation tasks in agentic workflows where cost predictability matters.

## Known failure modes

- Private or loopback IP URLs are rejected with an error
- Invalid or unreachable URLs return a fetch/navigation error
- Unsupported format values outside A4/Letter enum cause a validation error
- Payment failure via x402 protocol results in a 402 response before processing begins
- Timeout if page never reaches the specified waitUntil condition (e.g. networkidle0 on a chatty page)
- Viewport dimensions outside allowed min/max ranges (width 320-3840, height 240-2160) cause validation errors

## How this service works

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

## Output

A binary PDF file (application/pdf) representing the fully rendered webpage at the given URL, formatted according to the specified page size, margins, viewport, and orientation settings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "Public http(s) URL. Private/loopback IPs rejected."
  },
  "options": {
   "type": "object",
   "properties": {
    "format": {
     "enum": [
      "A4",
      "Letter"
     ],
     "type": "string",
     "default": "A4"
    },
    "margin": {
     "description": "CSS-length string or { top, bottom, left, right }"
    },
    "viewport": {
     "type": "object",
     "properties": {
      "width": {
       "type": "integer",
       "default": 1280,
       "maximum": 3840,
       "minimum": 320
      },
      "height": {
       "type": "integer",
       "default": 800,
       "maximum": 2160,
       "minimum": 240
      }
     }
    },
    "landscape": {
     "type": "boolean",
     "default": false
    },
    "waitUntil": {
     "enum": [
      "load",
      "domcontentloaded",
      "networkidle0",
      "networkidle2"
     ],
     "type": "string",
     "default": "networkidle0"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": "<binary application/pdf>"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-tools-url-to-pdf-renderer-2e0471c2/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)
