# FastX402 Web Page to PDF Converter

> FastX402 Web Page to PDF Converter is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-17).

Fetches a web page by URL and returns it as a base64-encoded PDF, with optional paper size selection.

## Facts

- Endpoint: GET https://fastx402.tools/webpdf?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-web-page-to-pdf-converter-0769b412
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DCuF5vBjx7IN-rW9gDZpz

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 fastx402-web-page-to-pdf-converter-0769b412
```

Example prompt: Can you convert this article to a PDF for me — https://www.reuters.com/technology/ai-agents-article — using A4 paper size?

## When to prefer this

Use this endpoint when you need a pay-per-call, no-account-required web-to-PDF conversion that returns a base64-encoded PDF payload directly in the API response. Prefer it over browser automation or heavyweight PDF libraries when you want a simple, cheap, stateless HTTP call with no API key setup. It is ideal for agents that occasionally need to archive, share, or process web pages as PDFs without standing up infrastructure.

## Known failure modes

- Invalid or unreachable URL returns an error — ensure the URL is absolute (http/https) and publicly accessible
- Non-public or authentication-gated pages may render blank or partial PDFs
- Very large or JavaScript-heavy pages may time out or render incompletely
- Invalid format enum value (anything other than A4 or Letter) will cause a validation error
- Payment failure (insufficient USDC balance) will block the request before rendering

## How this service works

146 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

A JSON object containing the original URL, paper format used, MIME type (application/pdf), and the full PDF file encoded as a base64 string, ready to be decoded and saved or passed to downstream tools.

## 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",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Absolute http(s) URL of the page"
      },
      "format": {
       "enum": [
        "A4",
        "Letter"
       ],
       "type": "string",
       "description": "Paper size, default A4"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      },
      "format": {
       "type": "string"
      },
      "mime_type": {
       "type": "string"
      },
      "pdf_base64": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com/",
  "format": "A4",
  "mime_type": "application/pdf",
  "pdf_base64": "JVBERi0xLjQKJdPr6eEKMSAwIG9iago8PC9DcmVhdG9y..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-web-page-to-pdf-converter-0769b412/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
