# URL to PDF Converter (A4 with Backgrounds)

> URL to PDF Converter (A4 with Backgrounds) is a paid API for AI agents from api.x-402.online, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Converts any web page URL into a PDF file rendered in A4 format with background graphics preserved

## Facts

- Endpoint: GET https://api.x-402.online/v1/pdf
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-to-pdf-converter-a4-with-backgrounds-6aff9319
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VXHGHjIjHAFNjKxwP76Rz

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 url-to-pdf-converter-a4-with-backgrounds-6aff9319
```

Example prompt: Can you convert https://example.com/report into a PDF for me? I need it in A4 size with all the background colors and images preserved.

## When to prefer this

Use this endpoint when you need a full-page A4-format PDF of a public web page with backgrounds preserved — ideal for reports, invoices, articles, or any page where visual fidelity matters. Prefer this over screenshot services when you need a document-friendly, printable PDF output rather than an image.

## Known failure modes

- URL is unreachable or returns an error — PDF generation fails
- URL points to a login-gated page — content may not render correctly
- Malformed or missing URL input — request rejected
- Page takes too long to load — timeout error
- Payment of $0.01 USDC not processed — 402 Payment Required response

## How this service works

URL -> PDF (A4, backgrounds). Input: {url}

## Output

A PDF document rendered in A4 format from the provided URL, with CSS backgrounds and visual styling intact, suitable for printing or archiving.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-to-pdf-converter-a4-with-backgrounds-6aff9319/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x-402.online](https://www.zero.xyz/host/api.x-402.online/llms.txt)
