{"uid":"cap_fy8UOSYDaTIbJQSlB2mIS","slug":"toll402-pdf-text-extractor-31025386","name":"Toll402 PDF Text Extractor","description":"The OpenRouter for AI-agent tools: one gateway, every capability, pay per call. Built-in tools, agent-forged tools, a global verified business directory, 2,730 provider API endpoints (SEO, social, enrichment, ads, market data, AI generation) and aggregated x402 services. Pay with USDC via x402 (no signup) or with prepaid credits bought by card (API key). Charged only on success.","url":"https://toll402.dev/v1/pdf?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","format":"uri","description":"Public URL of a PDF file"},"maxChars":{"type":"integer","default":300000,"maximum":1000000,"minimum":500}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ms":{"type":"integer"},"ok":{"type":"boolean"},"tool":{"type":"string"},"result":{"type":"object","properties":{"url":{"type":"string"},"text":{"type":"string"},"pages":{"type":"integer"},"wordCount":{"type":"integer"}}}}}}}}},"responseSchema":{"type":"json","example":{"url":"...","text":"Dummy PDF file","pages":1,"wordCount":3}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.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_dCFbsa1liOFoEqaGJwmF6","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":"Downloads a PDF from a public URL and returns its full extracted text, page count, word count, and title.","exampleAgentPrompt":"Can you download the PDF at https://example.com/report.pdf and give me its full text, the number of pages, and the title?","exampleUseCases":[{"title":"Research paper content extraction","prompt":"Pull all the text out of this academic paper PDF at https://arxiv.org/pdf/2301.00001.pdf and tell me how many pages it is and what the title says."},{"title":"Legal document text retrieval","prompt":"I need the full text from this contract PDF at https://example.com/contract.pdf — extract everything, up to 500000 characters, so I can review it."},{"title":"Government report summarization prep","prompt":"Grab the text from this government report at https://agency.gov/annual-report-2024.pdf, including the page count and word count, so I can summarize it."}],"resultDescription":"Returns a JSON object containing: the original PDF URL, the full extracted text (up to maxChars characters), the total page count, the word count, the document title, a processing time in milliseconds, and a success flag.","failureModes":["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","PDF contains only scanned images with no extractable text layer","maxChars value outside the allowed range (500–1000000)","Network timeout when fetching large PDFs"],"whenToPreferThis":"Use this endpoint when you need to programmatically extract raw text from a PDF hosted at a public URL, especially when you also need metadata like page count and word count. Prefer this over generic web scrapers when the target is specifically a PDF file. Ideal for research, legal, and document analysis workflows where LLM-ready plain text is required from a remote PDF.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T06:42:03.334Z","isFirstParty":false,"canonicalSlug":"toll402-pdf-text-extractor-31025386"}