{"uid":"cap_N6apbRFdqXidGa1wMz2JH","slug":"leafmelt-document-to-markdown-converter-8abeb2dc","name":"Leafmelt Document to Markdown Converter","description":"Any document to clean Markdown, in one call. PDF, Word and Excel to Markdown API + MCP for AI agents and RAG Try it free in one click, no sign-up.","url":"https://leafmelt.cybermaxtools.com/x402/api/convert?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":"Document URL, or up to 5 separated by commas or spaces (or POST {\"urls\": [...]})"},"maxChars":{"type":"integer","default":200000,"description":"Cut each document's Markdown at this many characters (1,000 to 2,000,000; default 200,000)"}}}}},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_n7cvSUTXIi53dZHvpRQFn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts PDF, Word, and Excel documents to clean Markdown text via a single API call using a document URL","exampleAgentPrompt":"Can you convert this PDF at https://example.com/report.pdf into clean Markdown so I can feed it into my RAG pipeline?","exampleUseCases":[{"title":"RAG pipeline document ingestion","prompt":"I need to ingest this Word document at https://docs.example.com/policy.docx into my RAG system — can you convert it to clean Markdown, capped at 50000 characters?"},{"title":"PDF research paper extraction","prompt":"Take this academic PDF at https://arxiv.org/pdf/2401.12345.pdf and convert it to Markdown so I can analyze its contents and quote from it easily."},{"title":"Excel spreadsheet to Markdown table","prompt":"Convert this Excel spreadsheet at https://data.example.com/financials.xlsx to Markdown so I can include the tables in a report I'm writing."}],"resultDescription":"A JSON response containing the converted document content as clean Markdown text, suitable for use in AI pipelines, RAG systems, or any downstream text processing. The Markdown is truncated at the specified maxChars limit (default 200,000 characters).","failureModes":["Invalid or inaccessible document URL — returns an error if the URL cannot be fetched","Unsupported file format — non-PDF/Word/Excel files may fail to convert","Document exceeds size or character limits — content truncated or error returned","Network timeout fetching the remote document","Payment not completed via x402 protocol — request rejected with 402 status"],"whenToPreferThis":"Choose this endpoint when you need to convert PDF, Word (.docx), or Excel (.xlsx) documents to clean Markdown in a single API call, especially for AI agent workflows, RAG pipelines, or LLM ingestion where clean, structured text is needed. Prefer this over general web scrapers or HTML-to-Markdown tools when dealing with binary document formats. It's ideal for automation pipelines where document URLs are known in advance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:32:26.472Z","isFirstParty":false,"canonicalSlug":"leafmelt-document-to-markdown-converter-8abeb2dc"}