{"uid":"cap_7_rU4F9svXo2FDCUallHL","slug":"x402-web-tools-pdf-text-extractor-4e9dbe8f","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://web.kagurazaka.dev/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_6gttWZ_VFp2gBISPh92sI","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":"Extracts text content from a publicly accessible PDF URL, returning page-by-page text along with title, author, and page count metadata.","exampleAgentPrompt":"Can you extract the text from this PDF — https://example.com/report.pdf — and return up to 5 pages so I can read through the main content?","exampleUseCases":[{"title":"Research paper content extraction","prompt":"Pull the text out of this academic paper PDF at https://arxiv.org/pdf/2301.00001.pdf — I need the first 10 pages so I can summarize the findings."},{"title":"Legal document review","prompt":"Can you read this contract PDF at https://docs.example.com/agreement.pdf and give me all the text, up to 200 pages? I want to check the terms."},{"title":"Automated report ingestion","prompt":"Fetch the text from this quarterly report PDF at https://company.com/Q3-report.pdf, return up to 500000 characters, and tell me the title and author."}],"resultDescription":"A JSON object containing the extracted text split by page (each with page number and text), the document title, total page count, number of pages returned, and total character count. Scanned PDFs without an embedded text layer will return minimal or empty text.","failureModes":["PDF exceeds 10 MB size limit — returns an error or truncated result","Scanned PDF with no text layer returns little or no text","URL is not publicly accessible or returns a non-200 status — fetch failure","URL does not point to a valid PDF — parsing error","max_chars or max_pages parameters out of allowed range (1000–500000 and 1–200 respectively)","Network timeout fetching the remote PDF"],"whenToPreferThis":"Use this endpoint when you need to extract readable text from a PDF hosted at a public URL, especially for digital PDFs with an embedded text layer. It is well-suited for documents up to 10 MB with configurable page and character limits. Prefer this over general web scrapers for PDF-specific content, and over OCR services for standard digital PDFs that already contain a text layer.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:36:12.608Z","isFirstParty":false,"canonicalSlug":"x402-web-tools-pdf-text-extractor-4e9dbe8f"}