{"uid":"cap_JxRB440PbutQvpHkQhmt0","slug":"nojunk-document-converter-96e80cda","name":"NoJunk Document Converter","description":"NoJunk Document convert: Convert a PDF, Office document, spreadsheet, HTML/XML page or image (by URL or base64) to Markdown with Cloudflare toMarkdown.","url":"https://nojunk-document.mick8511.workers.dev/convert?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Public http/https URL of the document (PDF, DOCX, XLSX, XLSM, XLSB, XLS, ODS, ODT, CSV, Apple Numbers, HTML, XML, Markdown, plain text, PNG, JPEG, WebP, SVG; max 20971520 bytes). Use this OR file_base64."},"filename":{"type":"string","description":"Optional: original filename with extension (needed for Office/OpenDocument files sent as base64, e.g. report.docx)"},"max_chars":{"type":"integer","description":"Optional: cap on returned markdown characters, 1000-400000 (default 400000)"},"file_base64":{"type":"string","description":"The file as base64 (data: URL prefix allowed, max 20971520 decoded bytes). Use this OR url."},"content_type":{"type":"string","description":"Optional: MIME type of the file when the filename has no extension"}}},"responseSchema":{"type":"json","example":{"name":"dummy.pdf","bytes":13264,"tokens":4,"markdown":"Dummy PDF file","mime_type":"application/pdf","truncated":false,"pages_hint":null,"source_url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","word_count":3,"total_chars":14,"converted_at":"2026-10-15T12:00:00.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kqncbnOx-2TYzltla8CS8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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, OpenDocument, CSV, HTML, XML, and image files (via URL or base64) into clean Markdown for agent reasoning, billed at $0.01 USDC per successful conversion.","exampleAgentPrompt":"Can you read this PDF for me and give me the content as markdown? Here's the URL: https://example.com/annual-report-2024.pdf — keep it under 50000 characters.","exampleUseCases":[{"title":"Extract contract clauses from PDF","prompt":"I need you to read this contract PDF and pull out the key clauses — here's the URL: https://contracts.example.com/vendor-agreement.pdf. Convert it to markdown so I can reason over it."},{"title":"Parse Excel spreadsheet for analysis","prompt":"Can you convert this Excel file into markdown so I can analyze the data? I'll send it as base64, the filename is quarterly-sales.xlsx."},{"title":"Read scanned invoice image","prompt":"I have a JPEG image of an invoice at https://invoices.example.com/invoice-1042.jpg — please convert it to markdown text so I can extract the line items."}],"resultDescription":"A JSON object containing the converted Markdown text, along with metadata: original filename, file size in bytes, estimated token count, MIME type, word count, total character count, a truncated flag indicating if the output was capped, an optional pages_hint, the source URL if provided, and the conversion timestamp.","failureModes":["URL is not publicly accessible or returns non-200 — conversion fails with an error","File exceeds 20 MB limit — rejected before conversion","Unsupported file format — returns an error indicating the MIME type is not handled","base64 payload is malformed or missing filename extension for Office files — conversion may fail or produce garbled output","Payment not settled — no charge and no result returned","max_chars below 1000 or above 400000 — validation error"],"whenToPreferThis":"Choose this endpoint when an agent needs to ingest the readable text content of a document (PDF, Word, Excel, OpenDocument, CSV, HTML, XML, or image) and reason over it as Markdown. It is ideal for pay-per-use pipelines where you only pay on success ($0.01 USDC), supports both URL-based and base64 file delivery, and handles a wide range of office and image formats in a single unified API call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T06:32:36.981Z","isFirstParty":false,"canonicalSlug":"nojunk-document-converter-96e80cda"}