{"uid":"cap_CqlXpsoMoTYWNu8cx60DP","slug":"doc-tools-pdf-text-extractor-5a7fa339","name":"Doc Tools: PDF Text Extractor","description":"Web extraction, domain lookups and document tools for AI agents. Pay per call in USDC via x402 on Base or Algorand.","url":"https://agentpay.agentpay-apis.workers.dev/tools/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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"URL of a PDF"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iVgf6tQ1mC2dMl_JvvjNQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a PDF from a given URL and returns extracted per-page text content (supports PDFs up to 20MB).","exampleAgentPrompt":"Can you extract all the text from this PDF for me? Here's the URL: https://example.com/annual-report-2024.pdf","exampleUseCases":[{"title":"Extract contract terms from PDF","prompt":"I have a PDF contract at https://legal.example.com/contract.pdf — can you pull out all the text so I can review the terms?"},{"title":"Research paper text extraction","prompt":"Extract the full text from this academic paper PDF at https://arxiv.org/pdf/2301.00001.pdf so I can analyze its content."},{"title":"Invoice data retrieval from PDF","prompt":"Pull the text out of the invoice PDF at https://billing.myvendor.com/invoices/INV-4521.pdf so I can find the line items and total amount."}],"resultDescription":"A structured response containing extracted text organized per page from the PDF, allowing the agent to read and process the document's textual content programmatically.","failureModes":["PDF URL is inaccessible or returns a non-200 status — fetch fails","PDF exceeds 20MB size limit — request is rejected","URL does not point to a valid PDF — parsing error","Password-protected or encrypted PDFs cannot be extracted","Scanned image-only PDFs yield empty or minimal text (no embedded text layer)","Network timeout fetching the remote PDF"],"whenToPreferThis":"Choose this endpoint when you need to programmatically extract text from a remotely hosted PDF file, especially when you need per-page granularity. Ideal for document analysis pipelines, contract review, research paper processing, or any workflow where a PDF's text content needs to be read and processed by an AI agent. Prefer this over general web scraping endpoints when the source is specifically a PDF document.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:35:24.014Z","isFirstParty":false,"canonicalSlug":"doc-tools-pdf-text-extractor-5a7fa339"}