# Document-to-Markdown Converter (PDF, DOCX, XLSX, ODT, CSV, XML)

> Document-to-Markdown Converter (PDF, DOCX, XLSX, ODT, CSV, XML) is a paid API for AI agents from onchaincheck.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-17).

Fetches a document at a public URL and converts it to Markdown, returning the text along with character, word, and token counts.

## Facts

- Endpoint: GET https://onchaincheck.dev/doc/markdown?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/document-to-markdown-converter-pdf-docx-xlsx-odt-csv-xml-e934786e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iqih7--X_r0UNXEYIc0NM

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-odt-csv-xml-e934786e
```

Example prompt: Can you grab the PDF at https://example.com/report.pdf and convert it to Markdown so I can feed it into my LLM pipeline — and also tell me the word and token count?

## When to prefer this

Use this endpoint when you need to convert a remotely hosted document (PDF, DOCX, XLSX, ODT, CSV, or XML) into clean Markdown suitable for LLM ingestion, especially when you also need character, word, and token counts. It is well-suited for agentic pipelines that need to ingest arbitrary document formats from URLs without handling file downloads or format-specific parsing libraries themselves.

## Known failure modes

- URL is not publicly accessible or returns a non-200 status
- Document exceeds the 20 MB size limit
- File format is not supported (e.g. PPT, image-only PDF)
- URL contains whitespace or is malformed
- Document is password-protected or encrypted
- Parsing fails for corrupted or malformed files

## How this service works

Convert a document at a URL to Markdown for an LLM: PDF, Word (DOCX), Excel (XLSX, XLS), OpenDocument (ODT, ODS), CSV and XML, up to 20 MB. Returns the Markdown with character, word and token counts.

## Output

Returns the full Markdown representation of the document, plus metadata including character count, word count, and token count. Supports documents up to 20 MB.

## 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",
       "pattern": "^\\S+$",
       "maxLength": 2000,
       "description": "Public URL of the document"
      }
     },
     "additionalProperties": false
    }
   },
   "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-odt-csv-xml-e934786e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchaincheck.dev](https://www.zero.xyz/host/onchaincheck.dev/llms.txt)
