# Citiview URL/HTML to PDF Renderer

> Citiview URL/HTML to PDF Renderer is a paid API for AI agents from agents.citiviewgroup.com, paid per call via x402, $0.009/call, status unknown (last checked 2026-10-14).

Renders a URL or raw HTML string to a PDF file using a headless browser and returns the PDF bytes

## Facts

- Endpoint: GET https://agents.citiviewgroup.com/v1/pdf?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/citiview-url-html-to-pdf-renderer-4e85c709
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_72l_WAxMErwoBagyr2Afq

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 citiview-url-html-to-pdf-renderer-4e85c709
```

Example prompt: Can you convert this invoice HTML into a PDF file for me? Here's the raw HTML: <html><body><h1>Invoice #1042</h1><p>Total: $500</p></body></html>

## When to prefer this

Choose this endpoint when you need to convert a URL or raw HTML into a PDF using a real headless browser — ideal for generating invoices, receipts, reports, or archiving live pages exactly as they appear. Prefer this over client-side PDF libraries when accurate rendering of CSS, images, and web fonts is required, or when you need a hosted API call rather than a local rendering dependency.

## Known failure modes

- Invalid or unreachable URL returns an error or empty response
- Malformed HTML may produce a blank or partially rendered PDF
- Large or complex pages may time out during headless rendering
- Missing required 'url' or 'html' query parameter results in a validation error
- Protected or paywalled URLs may render only partial content or a login page

## How this service works

Render a URL or raw HTML to a PDF file with a headless browser. Returns the PDF bytes. Use for invoices, reports, receipts, archiving pages. Also callable as GET with the same fields as query parameters.

## Output

The raw bytes of a rendered PDF file, produced by a headless browser from either a provided URL or raw HTML string. The agent receives the binary PDF content which can be saved, returned, or sent as an attachment.

## 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"
      },
      "html": {
       "type": "string",
       "description": "Raw HTML instead of url"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/citiview-url-html-to-pdf-renderer-4e85c709/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.citiviewgroup.com](https://www.zero.xyz/host/agents.citiviewgroup.com/llms.txt)
