{"uid":"cap_bF17Ejsq6nIuSwftR2UuP","slug":"agentindex-x402-pdf-reader-cd73af26","name":"AgentIndex x402 PDF Reader","description":"Extract a public PDF (by HTTPS URL or base64) into clean Markdown - headings and tables preserved via layout-aware parsing, plus title/author/page count/date metadata and a real token count. Text content itself is never generated or altered, only its structure is inferred. Try GET /pdf/sample. Part of the AgentIndex content kit (pdf, web-read, extract, summarize, detect-language) - see GET /capabilities.","url":"https://x402.agentindex.world/pdf?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Public HTTPS URL of a PDF file. Provide this or pdf_base64, not both."},"pdf_base64":{"type":"string","description":"Base64-encoded PDF file content. Provide this or url, not both."}}},"responseSchema":{"type":"json","example":{"markdown":"# Universal Declaration of Human Rights \n\n## Preamble \n\nWhereas recognition of the inherent dignity and of the equal and inalienable rights of all members of the human family is the foundation of freedom, justice and peace in the world, ...","metadata":{"date":"2001-09-10T01:04:58-07:00","pages":8,"title":null,"author":"lindner"},"token_count":2164}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zv4H0kBwCp6yJSRAfuAnY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a PDF file (by URL or base64) into Markdown text with metadata, billed at $0.05 USDC per call via x402","exampleAgentPrompt":"Can you extract the text from this PDF and give it to me as markdown? Here's the URL: https://example.com/report.pdf","exampleUseCases":[{"title":"Research paper text extraction","prompt":"I need to read this academic PDF at https://arxiv.org/pdf/2310.12345.pdf — can you pull out all the text as markdown so I can analyze it?"},{"title":"Legal contract parsing","prompt":"Extract all the text from this contract PDF so I can review the clauses: https://files.example.com/contract-2024.pdf"},{"title":"Government report ingestion","prompt":"Can you read this government report PDF and give me the content in markdown? It's a base64-encoded file I'll pass you directly."}],"resultDescription":"A JSON object containing: 'markdown' (the full document text converted to Markdown), 'metadata' (title, author, date, page count), and 'token_count' (number of tokens in the extracted content).","failureModes":["PDF URL is not publicly accessible or returns a non-200 status — endpoint will fail to fetch the document","Providing both url and pdf_base64 simultaneously — only one should be supplied","Malformed or password-protected PDFs may result in empty or partial extraction","Very large PDFs may time out or produce truncated results","Non-PDF URLs passed as url will result in parsing errors"],"whenToPreferThis":"Use this endpoint when you need to extract the full text content of a PDF — whether hosted at a public URL or available as a base64-encoded blob — and want the result as Markdown with document metadata (title, author, page count). Prefer this over generic web-read endpoints when the source is definitively a PDF. It is particularly well-suited for AI pipelines that need to ingest document content for downstream summarization, fact-checking, or analysis, and where micropayment via x402/USDC on Base is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T06:31:19.016Z","isFirstParty":false,"canonicalSlug":"agentindex-x402-pdf-reader-cd73af26"}