{"uid":"cap_zoQha_00p7IDGdJJ-FHUj","slug":"document-to-markdown-converter-7a1abb9d","name":"Document to Markdown Converter","description":"Guides and free-to-run Apify actors for bulk tech stack lookup, sitemap URL export to CSV, TED and UK Find a Tender search, and RSS-to-JSON feed monitoring.","url":"https://tools.adamhaleworks.workers.dev/x402/v1/document-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","required":["url"],"properties":{"url":{"type":"string","description":"Public URL of the document (PDF, DOCX, XLSX/XLSM/XLSB/XLS, ODS, ODT, CSV, HTML, XML or Numbers), up to 10 MB. No IPs or internal names."},"filename":{"type":"string","description":"Optional file name, used as a format hint and in the result."},"metadata":{"enum":["0","1"],"type":"string","description":"1 (default) keeps the PDF's metadata block at the top of the Markdown; 0 drops it."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"bytes":184292,"format":"PDF","tokens":5331,"filename":"bitcoin.pdf","finalUrl":"https://bitcoin.org/bitcoin.pdf","markdown":"# bitcoin.pdf\n## Contents\n### Page 1\nBitcoin: A Peer-to-Peer Electronic Cash SystemSatoshi Nakamoto\nsatoshin@gmx.com\nwww.bitcoin.orgAbstract. A purely peer-to-peer version of electronic cash would allow online\npayments to be sent directly from one party to another without going through a\nfinancial institution. …","mimeType":"application/pdf","sourceUrl":"https://bitcoin.org/bitcoin.pdf","truncated":false,"wordCount":3535,"characters":21322}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vBd8WdW955uTY3K9Ix1do","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a public document (PDF, DOCX, XLSX, HTML, CSV, etc.) from a URL and converts it to Markdown text with optional metadata.","exampleAgentPrompt":"Can you fetch this PDF and convert it to markdown so I can read through it? The URL is https://bitcoin.org/bitcoin.pdf — please keep the metadata block at the top.","exampleUseCases":[{"title":"Extract whitepaper content for LLM ingestion","prompt":"Grab the content of this research whitepaper PDF at https://arxiv.org/pdf/2303.08774.pdf and convert it to markdown so I can feed it into my pipeline — keep the metadata header."},{"title":"Parse a government tender document","prompt":"I need to read a UK government tender document at https://example.gov.uk/tender123.docx — can you convert it to markdown text so I can search through the requirements?"},{"title":"Convert spreadsheet to readable text","prompt":"There's a public Excel file at https://data.example.com/report.xlsx — please convert it to markdown so I can see what's in it without downloading it."}],"resultDescription":"A JSON object containing the full markdown-converted text of the document, plus metadata: file format, MIME type, word count, character count, token count, byte size, source URL, final (redirected) URL, filename, and a truncated flag indicating if the content was cut short.","failureModes":["Document URL is not publicly accessible (private or requires auth) — fetch fails","File exceeds 10 MB size limit — rejected","Unsupported file format — conversion not attempted","URL points to an internal IP or hostname — blocked for security","Network timeout fetching the remote document","Malformed or corrupted file — parsing error returned"],"whenToPreferThis":"Use this endpoint when you need to programmatically extract and read text content from a publicly accessible document (PDF, DOCX, XLSX, HTML, CSV, etc.) without downloading or parsing it locally. It is ideal for LLM pipelines that need to ingest document content as markdown, or when you want to quickly read a remote file's text without format-specific libraries. Prefer this over generic web scrapers when the target is a document file rather than a web page.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T06:40:17.376Z","isFirstParty":false,"canonicalSlug":"document-to-markdown-converter-7a1abb9d"}