{"uid":"cap_Nuf4eEjg8iDUxy474g1VU","slug":"axiomworks-document-to-markdown-converter-edbf06c8","name":"Axiomworks Document-to-Markdown Converter","description":"Convert a public document URL (PDF, DOCX, HTML, text) into clean markdown or plain text. PDF via unpdf/PDF.js; DOCX via mammoth; HTML via Readability+Turndown.","url":"https://api.axiomworks.co.uk/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","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Public URL of a PDF, DOCX, HTML or text document"},"format":{"enum":["markdown","text"],"type":"string","description":"Output format (default markdown)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"url":{"type":"string"},"text":{"type":"string"},"pages":{"type":"integer"},"title":{"type":["string","null"]},"markdown":{"type":"string"},"final_url":{"type":"string"},"truncated":{"type":"boolean"},"word_count":{"type":"integer"},"detected_format":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"url":"https://raw.githubusercontent.com/mozilla/pdf.js/master/web/compressed.tracemonkey-pldi-09.pdf","pages":14,"title":null,"omitted":["full markdown/text body"],"paid_call":"https://api.axiomworks.co.uk/convert?url=https%3A%2F%2Fraw.githubusercontent.com%2Fmozilla%2Fpdf.js%2Fmaster%2Fweb%2Fcompressed.tracemonkey-pldi-09.pdf","truncated":true,"word_count":13409,"text_preview":"Trace-based Just-in-Time Type Specialization for Dynamic\nLanguages\nAndreas Gal∗+, Brendan Eich∗, Mike Shaver∗, David Anderson∗, David Mandelin∗,\nMohammad R. Hag","detected_format":"pdf","full_report_via":"x402 (USDC on Base, HTTP 402 → PAYMENT-SIGNATURE retry)","full_report_price":"$0.03","preview_remaining":7}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Z0K1fGKNVBLRGMPIixwcN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts publicly accessible PDF, DOCX, HTML, or plain-text documents to clean Markdown or plain text, returning detected format, content, page count, and word count.","exampleAgentPrompt":"Can you fetch the PDF at https://example.com/report.pdf and convert it to markdown so I can feed it into my RAG pipeline?","exampleUseCases":[{"title":"RAG pipeline document ingestion","prompt":"I have a research paper at https://arxiv.org/pdf/2301.00001.pdf — can you convert it to markdown so I can chunk it and load it into my vector database?"},{"title":"DOCX contract text extraction","prompt":"Please grab the Word document at https://legal.example.com/contract.docx and give me the plain text version so I can summarize it."},{"title":"Automated report summarization","prompt":"There's a PDF annual report at https://company.com/annual-report-2024.pdf — convert it to markdown and then give me a one-paragraph summary of the key financials."}],"resultDescription":"Returns a JSON object containing: detected_format (e.g. 'pdf', 'docx'), the converted content in the requested format (markdown or plain text), pages (page count), and word_count. The markdown output preserves headings and structure where possible.","failureModes":["URL is not publicly accessible or returns 4xx/5xx — conversion fails with an error","Document format is not supported (e.g. XLSX, PPT) — returns format error","PDF is scanned/image-only with no embedded text — output will be empty or minimal","Document is too large or takes too long to fetch — may timeout","Malformed URL input — returns validation error"],"whenToPreferThis":"Use this endpoint when you need clean, structured text from a remote PDF, DOCX, HTML, or plain-text document and the source is publicly accessible via URL. It is ideal for RAG ingestion, summarization preprocessing, and LLM context preparation. Prefer this over general web-scraping endpoints when the source is a document file rather than a webpage, and over OCR services when the document has embedded selectable text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T02:27:45.158Z","isFirstParty":false,"canonicalSlug":"axiomworks-document-to-markdown-converter-edbf06c8"}