{"uid":"cap_L1QXBG-p9AVSQOIcdXJU_","slug":"x402-deployer-x402-deployer-workers-dev-6743e26f","name":"PDF to Markdown/HTML/JSON Converter (Datalab Marker)","description":"PDF parser / PDF to Markdown / PDF to text / OCR PDF / extract tables from PDF / scanned-PDF OCR / PDF reader / PDF data extractor / equation-aware PDF parser / Datalab Marker. AI-powered, layout-aware extraction that preserves headings, tables, equations (LaTeX), bulleted lists, and multi-column flow. Outputs Markdown (default), HTML, or structured JSON with per-page blocks. Handles digital + scanned PDFs. 30 pages max.","url":"https://x402-deployer.x402-deployer.workers.dev/pdf-to-markdown","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["pdf_url"],"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":{"enum":["markdown","html","json"],"type":"string","description":"'markdown' (default — best for LLM downstream), 'html' (preserves more layout structure), or 'json' (per-page blocks with type + bbox)."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"markdown":{"type":"string"},"page_count":{"type":"integer"},"source_url":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.2","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.2/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6_n8cee9bhbtJM3Vp57WB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.2","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts PDF documents to markdown, HTML, or structured JSON with OCR-grade text extraction and structure preservation, up to 30 pages per call.","exampleAgentPrompt":"Can you convert this PDF to markdown for me? Here's the file — it's a 20-page research report and I need clean markdown output with the headings and structure preserved.","exampleUseCases":null,"resultDescription":"Returns the document content in the requested format (markdown, HTML, or structured JSON), with headings, paragraphs, tables, and other structural elements preserved from the original PDF. OCR-quality extraction handles both native and scanned PDFs up to 30 pages.","failureModes":["PDF exceeds 30-page limit — returns error indicating page limit exceeded","Corrupted or password-protected PDF — returns parsing error","Unsupported output format requested — returns validation error","Network timeout for large PDFs — returns timeout error","Payment not provided or insufficient — returns 402 payment required"],"whenToPreferThis":"Use this endpoint when you need high-quality, structure-preserving PDF text extraction with OCR capabilities, especially for research papers, reports, or scanned documents. Prefer this over generic text extraction when document structure (headings, tables, sections) matters in the output. Best for single documents up to 30 pages where OCR-grade accuracy is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:47:45.129Z","isFirstParty":false}