{
  "service": "NoJunk Document",
  "description": "Pay-per-call document reading for agents: convert a PDF, Word, Excel, OpenDocument, CSV, Apple Numbers, HTML, XML or image file (by public URL or base64) into clean Markdown you can reason over. One cent per document; you are only charged when a conversion is returned.",
  "openapi": "https://nojunk-document.mick8511.workers.dev/openapi.json",
  "endpoints": {
    "/convert": {
      "method": "POST",
      "url": "https://nojunk-document.mick8511.workers.dev/convert",
      "price": "$0.01 USDC on Base per request (x402)",
      "description": "Convert a PDF, Office document, spreadsheet, HTML/XML page or image (by URL or base64) to Markdown with Cloudflare toMarkdown.",
      "example_body": {
        "url": "https://pdfobject.com/pdf/sample.pdf"
      },
      "max_request_bytes": 29360128
    }
  },
  "supported_types": [
    "pdf",
    "png",
    "jpg",
    "jpeg",
    "webp",
    "svg",
    "html",
    "htm",
    "xml",
    "docx",
    "xlsx",
    "xlsm",
    "xlsb",
    "xls",
    "et",
    "ods",
    "odt",
    "csv",
    "numbers",
    "md",
    "markdown",
    "txt"
  ],
  "limits": {
    "max_file_bytes": 20971520,
    "max_request_bytes": 29360128,
    "max_markdown_chars": 400000,
    "max_chars_range": [
      1000,
      400000
    ],
    "fetch_timeout_ms": 20000,
    "max_redirects": 3
  },
  "no_charge_on": [
    "400 invalid input or blocked url",
    "413 body or file too large",
    "415 unsupported file type",
    "422 file could not be converted",
    "502 url unreachable or converter unavailable"
  ],
  "configured": true,
  "facilitator": "cdp"
}