{"uid":"cap_Cxbe4U7aL4ZhtBBZ51235","slug":"utilia-pdf-to-markdown-93826751","name":"Utilia PDF to Markdown","description":"Extract deterministic Markdown and metadata from a public HTTPS PDF URL or a base64 PDF payload. Enforces public-network fetching, an 8 MiB limit, and a caller-selected page cap.","url":"https://api.utilia.ink/base/v1/pdf/to-markdown?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","pattern":"^https://","description":"Public HTTPS PDF URL"},"title":{"type":"string","maxLength":200},"maxPages":{"type":"integer","default":50,"maximum":100,"minimum":1}}},"responseSchema":{"type":"json","example":{"title":"Quarterly report","sha256":"47b9...","markdown":"# Quarterly report\n\n## Page 1\n\n...","totalPages":4,"sourceBytes":48321,"textCharacters":12940}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_c0dkg2UMB5LdVotm0sLy3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a public HTTPS PDF URL or base64-encoded PDF payload into deterministic Markdown text plus metadata, with configurable page cap and 8 MiB size limit.","exampleAgentPrompt":"Can you fetch the PDF at https://example.com/report.pdf and convert it to Markdown — cap it at 10 pages?","exampleUseCases":[{"title":"Research paper ingestion for LLM pipeline","prompt":"Grab this academic PDF at https://arxiv.org/pdf/2401.00001.pdf and convert it to Markdown so I can feed it into my summarization pipeline — limit it to the first 20 pages."},{"title":"Contract text extraction for review","prompt":"I have a contract PDF encoded in base64 — can you convert it to Markdown so I can read and analyze the clauses? Cap it at 50 pages."},{"title":"Invoice data extraction from PDF URL","prompt":"Pull the PDF invoice from https://invoices.example.com/inv-12345.pdf and extract its contents as Markdown so I can parse the line items."}],"resultDescription":"Returns deterministic Markdown text representing the PDF content, along with document metadata such as page count, title, and author fields. The output is structured to be LLM-friendly and consistently formatted across calls for the same input.","failureModes":["Non-public or private HTTPS URL returns a network/fetch error","PDF exceeds the 8 MiB size limit, returning a payload-too-large error","Requested page cap exceeds actual document length, truncating output gracefully","Malformed or corrupt base64 payload returns a parse error","Non-PDF file at the URL returns an unsupported format error","PDF with only scanned images (no embedded text) returns empty or near-empty Markdown"],"whenToPreferThis":"Choose this endpoint when you need deterministic, reproducible Markdown extraction from a PDF — particularly useful in agentic pipelines where consistent output across repeated calls matters. Ideal for LLM pre-processing, document QA, and structured extraction from publicly accessible PDFs or base64-encoded payloads. Prefer this over general-purpose scraping tools when the input is specifically a PDF and clean Markdown output is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T23:28:45.217Z","isFirstParty":false,"canonicalSlug":"utilia-pdf-to-markdown-5c1bd21c"}