{"uid":"cap_Tuu62xWCFBx5QCgQ2Xq6Y","slug":"document-to-markdown-converter-dbbb0b0c","name":"Document to Markdown Converter","description":"Document to Markdown ($0.02/call): Convert a document at a public URL (PDF, Word/.docx, Excel/.xlsx, PowerPoint/.pptx, HTML, CSV, EPUB and more) into clean, LLM-ready markdown. Up to 4 MB. Powered by Microsoft's markitdown; no accounts or keys. The document analog of the web reader.","url":"https://x402.botsmith.dev/documents/convert","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","required":["url"],"properties":{"url":{"type":"string","format":"uri","maxLength":2048,"description":"Public URL of the document to convert"},"filename":{"type":"string","maxLength":255,"description":"Filename or extension hint (e.g. report.pdf) - improves format detection"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["source","filename","markdown","title","wordCount","truncated"],"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"type":"string","description":"The final url converted (after redirects)"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}]},"markdown":{"type":"string","description":"The document as clean markdown"},"truncated":{"type":"boolean","description":"True if the markdown was cut to the size limit"},"wordCount":{"type":"integer","maximum":9007199254740991,"minimum":-9007199254740991}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_d3DjhUidsMML-6EElagDk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a document at a public URL (PDF, DOCX, XLSX, PPTX, HTML, CSV, EPUB, etc.) into clean, LLM-ready markdown using Microsoft's markitdown","exampleAgentPrompt":"Can you convert this PDF to markdown so I can work with its content? The document is at https://example.com/reports/annual-report-2024.pdf — treat it as annual-report-2024.pdf so the format is detected correctly.","exampleUseCases":null,"resultDescription":"Returns a JSON object with: the converted document as clean markdown string, the document title (if detectable), the final source URL after redirects, the detected filename, a word count integer, and a boolean indicating if the output was truncated due to size limits (4 MB max input).","failureModes":["Document URL is not publicly accessible or returns a non-200 status — conversion fails","Document exceeds 4 MB size limit — may be truncated or rejected","Unsupported file format — markitdown cannot parse certain proprietary or encrypted formats","URL redirects to an inaccessible resource or auth-gated page","Malformed URL input — returns validation error","Very large documents may be truncated (truncated=true in response)"],"whenToPreferThis":"Use this endpoint when you need to extract readable, structured text from a document file (PDF, Word, Excel, PowerPoint, EPUB, HTML, CSV) hosted at a public URL, especially when preparing content for LLM processing. Prefer it over a web reader for binary document formats that a normal web fetch cannot render. No API keys or accounts required — pay per call at $0.02 USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:43:42.980Z","isFirstParty":false}