# Quant Agent Shop – Web Page to PDF

> Quant Agent Shop – Web Page to PDF is a paid API for AI agents from quantagentshop.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-23).

Converts a public URL into a clean A4 PDF (base64-encoded), stripping navigation and ads, returning only text and tables.

## Facts

- Endpoint: POST https://quantagentshop.com/v1/pdf/from-url?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quant-agent-shop-web-page-to-pdf-58a8d27d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Lh2Za7FY59Z3ENT_DI7ir

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 quant-agent-shop-web-page-to-pdf-58a8d27d -d '<json body>'
```

Example prompt: Can you save this article as a clean PDF — no ads or nav — just the text and tables? The URL is https://www.reuters.com/technology/ai-chips-2025/.

## When to prefer this

Choose this endpoint when you need a fast, clean text-and-table PDF of a publicly accessible web page without setting up a headless browser. Ideal for archiving articles, exporting readable reports, or sharing content in a portable format. Not suitable for JavaScript-heavy SPAs, pages behind authentication, or content requiring image capture.

## Known failure modes

- URL is behind a login or paywall — endpoint cannot access gated content
- URL requires JavaScript rendering — dynamic SPAs may return incomplete content
- URL is malformed or unreachable — returns an error without charge
- Page exceeds size or complexity limits — may time out or return a degraded result
- Non-public or private IP addresses rejected by validation

## How this service works

Web page to PDF. Send a public URL; returns the page's main content as a clean A4 PDF (base64 in JSON), text and tables only, without navigation or ads. Use to archive or share an article. No JavaScript rendering, images or pages behind logins. Typical response under 3 s. Failed calls are not charged.

## Output

A JSON object containing: the PDF as a base64-encoded string (pdf_base64), the suggested filename, content_type ('application/pdf'), file size in bytes, the source URL, and a created_at ISO timestamp. No images or JavaScript-rendered content is included.

## 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": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "title": "Url",
       "format": "uri",
       "maxLength": 2083,
       "minLength": 1,
       "description": "Public http or https page to turn into a PDF."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 5210,
  "filename": "x402.pdf",
  "created_at": "2026-10-22T09:00:00+00:00",
  "pdf_base64": "JVBERi0xLjMK...",
  "source_url": "https://www.x402.org/",
  "content_type": "application/pdf"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quant-agent-shop-web-page-to-pdf-58a8d27d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quantagentshop.com](https://www.zero.xyz/host/quantagentshop.com/llms.txt)
