{"uid":"cap_oUM7Dgn-ci10J5zj75Ymj","slug":"leafmelt-document-to-markdown-converter-d190189f","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.cybermax-tools.workers.dev/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_YKa022CnplwjZuuk9yb1i","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, Excel, and other documents from a URL into clean Markdown text in a single API call","exampleAgentPrompt":"Can you convert this PDF at https://example.com/report.pdf into clean Markdown so I can feed it into my RAG pipeline? Keep it under 100,000 characters.","exampleUseCases":[{"title":"RAG pipeline document ingestion","prompt":"Fetch the PDF at https://company.com/whitepaper.pdf and convert it to clean Markdown — I need it formatted for my AI knowledge base, keep it under 150,000 characters."},{"title":"Multi-document batch conversion","prompt":"I have three Word documents I need converted to Markdown: https://docs.example.com/doc1.docx, https://docs.example.com/doc2.docx, and https://docs.example.com/doc3.docx — can you get them all as Markdown in one shot?"},{"title":"Excel spreadsheet to Markdown table","prompt":"Convert this Excel file at https://reports.mycompany.com/financials.xlsx into Markdown so I can paste the tables into my notes — the full content, no character limit needed beyond the default."}],"resultDescription":"A JSON response containing the converted Markdown content of the document(s) fetched from the provided URL(s), truncated to the specified maxChars limit per document (default 200,000 characters).","failureModes":["URL is inaccessible or returns a non-200 status — conversion fails with an error","Document format not supported — unsupported file types may return an error or empty output","Document too large or complex — may be truncated at maxChars limit","Network timeout fetching the remote document URL","Invalid URL format — request fails with a validation error","maxChars value outside allowed range (1,000 to 2,000,000) — rejected by API"],"whenToPreferThis":"Choose this endpoint when you need a single-call, no-setup solution to convert PDF, Word, or Excel documents from a public URL into clean Markdown, especially for feeding documents into LLMs or RAG pipelines. Ideal for agents that need to process documents on the fly without managing file uploads or complex parsing libraries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:38:34.796Z","isFirstParty":false,"canonicalSlug":"leafmelt-document-to-markdown-converter-d190189f"}