{"uid":"cap_5YI08_jgiTP9lJRDrZLZz","slug":"agent-data-tools-pdf-text-extractor-19219a2c","name":"Agent Data Tools: PDF Text Extractor","description":"Download a public PDF (up to 10 MB) and return its text page by page, with title, author, page count and character counts. Choose a first page and how many pages to read (up to 200) and cap the output with maxChars. arXiv abstract links are read as their PDF. Scanned PDFs without a text layer, encrypted files and non-PDF URLs fail uncharged. Use to read papers, invoices, reports and manuals into an agent's context.","url":"https://agent-data-tools.revmesh2074.workers.dev/pdf/text?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Absolute public http(s) URL of the PDF"},"pages":{"type":"integer","description":"How many pages to read (1-200, default 20)"},"maxChars":{"type":"integer","description":"Maximum characters of text returned across all pages (1000-200000, default 50000)"},"firstPage":{"type":"integer","description":"First page to read (default 1)"}}},"responseSchema":{"type":"object","properties":{"url":{"type":"string"},"chars":{"type":"number"},"pages":{"type":"array","items":{"type":"object","properties":{"page":{"type":"number"},"text":{"type":"string"},"chars":{"type":"number"}}}},"title":{},"author":{},"firstPage":{"type":"number"},"pagesRead":{"type":"number"},"truncated":{"type":"boolean"},"totalPages":{"type":"number"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USD","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FDqSI-_FzzYosxzZhBGoT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a publicly accessible PDF by URL and returns its text content page-by-page as clean, structured JSON","exampleAgentPrompt":"Can you read the PDF at https://arxiv.org/pdf/2301.07041 and extract the text from the first 10 pages?","exampleUseCases":[{"title":"Research paper extraction for analysis","prompt":"Fetch the text from this research paper PDF at https://arxiv.org/pdf/2301.07041 — just the first 20 pages, and cap it at 30000 characters so it fits in context."},{"title":"Legal document review from public filing","prompt":"Read the PDF at https://www.sec.gov/Archives/edgar/filings/sample.pdf and pull out all the text so I can review the contract terms."},{"title":"Technical documentation ingestion","prompt":"Extract the text from this product manual PDF at https://docs.example.com/manual.pdf, starting from page 5 and reading the next 15 pages."}],"resultDescription":"A JSON object containing the PDF URL, total character count, an array of page objects (each with page number, extracted text, and character count), document metadata (title, author), the first page read, number of pages read, total pages in the document, and a boolean indicating whether the result was truncated due to character limits.","failureModes":["PDF URL is not publicly accessible or returns a non-200 response","URL does not point to a valid PDF file","PDF is encrypted or password-protected and cannot be parsed","Requested page range exceeds the document's total page count","Character or page limits result in truncated output (truncated: true)","Network timeout fetching a very large remote PDF"],"whenToPreferThis":"Use this endpoint when you need to extract plain text from a publicly accessible PDF file via URL, especially for research papers, reports, legal documents, or technical manuals. It is ideal when you need page-level granularity, want to control the range of pages read, or need to cap the total characters returned to fit within an LLM context window. Prefer this over general web-reading tools when the target resource is specifically a PDF.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T10:15:40.643Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-pdf-text-extractor-19219a2c"}