# Document to Markdown Converter (PDF, DOCX, XLSX, etc.)

> Document to Markdown Converter (PDF, DOCX, XLSX, etc.) is a paid API for AI agents from agentdata-api.sander-van-aard.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-28).

Converts documents (PDF, DOCX, XLSX, ODT, ODS, CSV, HTML, XML) to LLM-ready markdown or plain text for $0.05 USDC per file, accepting a URL or base64-encoded file up to 10 MB.

## Facts

- Endpoint: POST https://agentdata-api.sander-van-aard.workers.dev/doc/markdown?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/document-to-markdown-converter-pdf-docx-xlsx-etc-9202eb7d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BS3wo2UZLO9naNYAJrYED

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 document-to-markdown-converter-pdf-docx-xlsx-etc-9202eb7d -d '<json body>'
```

Example prompt: Can you convert this PDF (https://example.com/report.pdf) into clean markdown so I can feed it to an LLM?

## When to prefer this

Choose this endpoint when you need to convert a text-based document (PDF, DOCX, XLSX, ODT, ODS, CSV, HTML, or XML) into clean markdown or plain text for downstream LLM processing, without needing an account or API key. It is ideal for one-off or low-volume conversions where pay-per-use ($0.05 USDC on Base) is preferable to a subscription. If the document is a scanned image/PDF without a text layer, use /doc/ocr instead.

## Known failure modes

- PDF without a text layer (scanned image) returns HTTP 400 — use /doc/ocr instead; no charge applied
- File exceeds 10 MB limit — rejected with an error
- Unsupported file type submitted — returns an error
- Invalid base64 encoding — request rejected
- URL unreachable or returning non-document content — conversion fails
- Payment failure (insufficient USDC balance on Base) — request not processed

## How this service works

Document to clean markdown for AI agents, $0.05 per file: PDF, DOCX, XLSX, ODT, ODS, CSV, HTML or XML in, LLM-ready markdown (or plain text) out. One call: send a url or the file as base64 (max 10 MB) — no upload step, no polling. A PDF without a text layer (a scan) returns 400 and you pay nothing; use /doc/ocr for images. USDC on Base, no account, no API key.

## Output

Returns LLM-ready markdown (or plain text) extracted and cleaned from the submitted document. If the PDF has no embedded text layer (a scan), the endpoint returns HTTP 400 and no charge is applied — the user should use /doc/ocr instead for scanned images.

## 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"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "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/document-to-markdown-converter-pdf-docx-xlsx-etc-9202eb7d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentdata-api.sander-van-aard.workers.dev](https://www.zero.xyz/host/agentdata-api.sander-van-aard.workers.dev/llms.txt)
