{"name":"pdf-to-text-api","description":"Extracts text from digital and scanned PDFs as Markdown, plain text, HTML, or JSON with layout-aware reading order. Same Datalab Marker-backed handler as pdf-to-text. Use it as a PDF to text API, PDF text extractor, or OCR PDF reader.","price":"$0.0025","method":"POST","input_schema":{"properties":{"pdf_url":{"type":"string","description":"Public URL of a PDF file (http or https). Must be directly fetchable, not behind auth or a viewer redirect. Max 30 pages."},"output_format":{"type":"string","enum":["markdown","html","json"],"description":"'markdown' (default — best for LLM downstream), 'html' (preserves more layout structure), or 'json' (per-page blocks with type + bbox)."}},"required":["pdf_url"]},"input_example":{"pdf_url":"https://raw.githubusercontent.com/py-pdf/sample-files/main/001-trivial/minimal-document.pdf","output_format":"markdown"},"output_example":{"markdown":"# Title\n\nBody text...","page_count":1},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}