{"uid":"cap_BS3wo2UZLO9naNYAJrYED","slug":"document-to-markdown-converter-pdf-docx-xlsx-etc-9202eb7d","name":"Document to Markdown Converter (PDF, DOCX, XLSX, etc.)","description":"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.","url":"https://agentdata-api.sander-van-aard.workers.dev/doc/markdown?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kKNKmTFg7RQExFT_BwtvG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"Can you convert this PDF (https://example.com/report.pdf) into clean markdown so I can feed it to an LLM?","exampleUseCases":[{"title":"Research paper ingestion pipeline","prompt":"I have a research paper at https://arxiv.org/pdf/2301.00001.pdf — can you convert it to markdown so I can pass it into my AI summarization workflow?"},{"title":"Contract text extraction from DOCX","prompt":"Here's a Word document as base64 — it's a legal contract and I need it converted to plain markdown text so my agent can analyze the clauses."},{"title":"Spreadsheet to markdown for AI analysis","prompt":"I've got an XLSX file at https://example.com/data.xlsx — convert it to markdown so I can feed it into an LLM for data analysis."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T12:31:00.421Z","isFirstParty":false,"canonicalSlug":"document-to-markdown-converter-pdf-docx-xlsx-etc-9202eb7d"}