{"uid":"cap_SWf6O7tWSSeNjo7Q3Qrdb","slug":"x402-web-tools-pdf-text-extractor-082390dd","name":"x402 Web Tools – PDF Text Extractor","description":"Extract the text of a PDF at a public URL, page by page, with its title, author and page count. Up to 10 MB; scanned PDFs without a text layer return little text.","url":"https://q7w9tnp09rjt5ccj.68r.lambda-web.us-east-1.on.aws/v1/pdf-text?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"https URL of the PDF"},"max_chars":{"type":"integer","description":"characters to return in all (1000-500000, default 100000)"},"max_pages":{"type":"integer","description":"pages to return (1-200, default 50)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"chars":{},"pages":{},"title":{},"pages_total":{},"pages_returned":{}}}}}}},"responseSchema":{"type":"json","example":{"chars":14,"pages":[{"page":1,"text":"Dummy PDF file"}],"title":null,"pages_total":1,"pages_returned":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tBrLplrKTMxkz6LwX-xKu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a public PDF by URL and returns its text content page by page, along with title, author, and page count metadata.","exampleAgentPrompt":"Can you grab the text from this PDF — https://example.gov/annual-report-2024.pdf — and give me the content of the first 20 pages?","exampleUseCases":[{"title":"Research paper text extraction","prompt":"Pull the full text from this academic paper PDF at https://arxiv.org/pdf/2301.00001.pdf so I can summarize its findings — grab up to 100 pages."},{"title":"Legal document reading","prompt":"Extract all the readable text from the contract PDF at https://contracts.example.com/agreement.pdf, page by page, so I can review its clauses."},{"title":"Government report ingestion","prompt":"Fetch the text from https://data.gov/report2023.pdf — I need the title, author info, and the content of the first 30 pages to feed into my analysis pipeline."}],"resultDescription":"A JSON object containing the total page count, number of pages returned, total character count, the document title (if embedded), and an array of page objects each with a page number and extracted text string. Scanned PDFs without a text layer will return minimal text.","failureModes":["PDF exceeds 10 MB size limit — returns an error or truncated response","Scanned PDF without a text layer — returns pages with little or no text","URL is not publicly accessible or requires authentication — fetch fails","Invalid or non-PDF URL — parsing error returned","max_pages or max_chars out of allowed range (pages: 1-200, chars: 1000-500000) — validation error"],"whenToPreferThis":"Use this endpoint when you have a direct public HTTPS URL to a PDF and need to extract its text content page by page, along with document metadata. It is ideal for text-layer PDFs (not scanned images) up to 10 MB. Prefer this over general web scraping endpoints when the target is specifically a PDF file rather than an HTML page.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:36:33.900Z","isFirstParty":false,"canonicalSlug":"x402-web-tools-pdf-text-extractor-082390dd"}