{"uid":"cap_6HgyVqUngfTwqq5OnRPZw","slug":"resolve402-document-to-markdown-converter-e504a46f","name":"Resolve402 Document to Markdown Converter","description":"Convert a document (PDF, DOCX, HTML, TXT) into clean Markdown for an LLM, with tables extracted as rows. Give a public URL (?url=) or POST the file (multipart or raw binary body, max 10 MB). Returns markdown, tables, page count, char count and source type. Useful for hosted agents that cannot run parsers locally. Nothing stored.","url":"https://resolve402.dev/api/doc-to-markdown?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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","properties":{"url":{"type":"string","description":"Public http(s) URL of a PDF, DOCX, HTML, TXT or image (PNG, JPEG, WebP, TIFF) document (max 10 MB, 10 s fetch). Alternative: POST the file as multipart/form-data (field 'file') or as a raw binary body."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3kmr-tciNlCvbo2mWVD5g","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts PDF, DOCX, HTML, or TXT documents (via URL or file upload) into clean Markdown with extracted tables, returning markdown text, table rows, page count, character count, and source type.","exampleAgentPrompt":"Can you convert this PDF into clean markdown for me? Here's the URL: https://example.com/report.pdf — I need the tables extracted as rows too so I can feed it into an LLM.","exampleUseCases":[{"title":"LLM pipeline document ingestion","prompt":"I have a hosted research paper at https://arxiv.org/pdf/2301.00001.pdf — can you convert it to clean markdown with tables extracted so I can pass it directly into my language model?"},{"title":"Word doc to markdown for knowledge base","prompt":"Please parse this DOCX file I'm uploading and give me back clean markdown, including any tables as rows — I want to store it in my agent's knowledge base."},{"title":"HTML article extraction for summarization","prompt":"There's an HTML article at https://techcrunch.com/2024/01/15/some-article — convert it to clean markdown so my AI agent can summarize the key points without all the HTML noise."}],"resultDescription":"Returns a JSON object containing: the full markdown representation of the document, tables extracted as structured rows, total page count, character count, and the detected source type (pdf, docx, html, or txt). Nothing is stored server-side after the response.","failureModes":["Document URL is not publicly accessible or returns non-200 — fetch fails","File exceeds 10 MB limit — rejected with size error","Remote URL fetch exceeds 10-second timeout — timeout error","Unsupported file format submitted — returns format error","Malformed or corrupted document — parsing failure","Payment not completed via x402 — 402 Payment Required returned"],"whenToPreferThis":"Choose this endpoint when your agent is running in a hosted environment and cannot run local document parsers (e.g. pdfminer, python-docx). Ideal for pay-per-call pipelines where you only occasionally need document conversion and don't want to maintain parsing infrastructure. Best when you need LLM-ready markdown with structured table extraction in a single API call, and your document is reachable via a public URL or uploadable as a file.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:36:03.048Z","isFirstParty":false,"canonicalSlug":"resolve402-document-to-markdown-converter-e504a46f"}