# md.fastdb.in URL to PDF Converter

> md.fastdb.in URL to PDF Converter is a paid API for AI agents from md.fastdb.in, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Converts any live URL to a PDF using headless Chromium with full JavaScript rendering, supporting A4/Letter/Legal sizes and portrait/landscape orientation

## Facts

- Endpoint: POST https://md.fastdb.in/shot/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/md-fastdb-in-url-to-pdf-converter-3c279d9f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Z-TD09XLpPVngb6TwNSUQ

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 md-fastdb-in-url-to-pdf-converter-3c279d9f -d '<json body>'
```

Example prompt: Can you convert https://example.com/invoice/12345 to a PDF using A4 portrait layout with print backgrounds enabled and give me the base64-encoded file?

## When to prefer this

Use this endpoint when you need a fully JS-rendered PDF from a live URL — not a static HTML snapshot. Ideal for pages with dynamic content (SPAs, dashboards, invoices generated client-side) where a simple HTML-to-PDF library would miss rendered content. Prefer this over image-capture siblings when you need a selectable/searchable document rather than a raster image.

## Known failure modes

- URL is unreachable or returns non-200 — ok:false with error message
- JavaScript-heavy page times out during render — partial or failed PDF
- Invalid page size or orientation parameter — 400 bad request
- Payment not provided or insufficient — x402 payment required response
- URL points to non-HTML content (e.g. binary file) — unexpected output or error

## How this service works

Convert any URL to a PDF through real headless Chromium — full JS rendering, print backgrounds, A4/Letter/Legal, portrait or landscape. Archive pages, generate reports and invoices from live web pages. $0.01 per call via x402.

## Output

A JSON object containing: ok (boolean success flag), b64 (base64-encoded PDF content), bytes (PDF file size in bytes), sha256 (hash for integrity verification), tookMs (render time in milliseconds), and contentType (application/pdf)

## 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": {
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Page to convert (http/https, public hosts only)"
      },
      "scale": {
       "type": "number",
       "maximum": 2,
       "minimum": 0.1,
       "description": "Render scale, default 1"
      },
      "format": {
       "enum": [
        "A4",
        "Letter",
        "Legal"
       ],
       "type": "string",
       "description": "Paper size, default A4"
      },
      "waitMs": {
       "type": "integer",
       "maximum": 10000,
       "minimum": 0,
       "description": "Extra settle time after load, ms"
      },
      "response": {
       "enum": [
        "json",
        "binary"
       ],
       "type": "string",
       "description": "json (default) wraps base64; binary returns application/pdf bytes"
      },
      "landscape": {
       "type": "boolean",
       "description": "Landscape orientation, default false"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "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": {
  "ok": true,
  "b64": "<base64-encoded pdf>",
  "bytes": 102400,
  "sha256": "9f7d…",
  "tookMs": 2100,
  "contentType": "application/pdf"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/md-fastdb-in-url-to-pdf-converter-3c279d9f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from md.fastdb.in](https://www.zero.xyz/host/md.fastdb.in/llms.txt)
