{"uid":"cap_MxWZFeizfSKDb-1Is40Zc","slug":"agentsvc-io-pdf-text-extraction-b659ce08","name":"agentsvc.io PDF Text Extraction","description":"86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.","url":"https://agentsvc.io/api/v1/proxy/pdf-extract?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"max_pages":{"type":"integer","default":50,"description":"Maximum number of pages to extract. Default: 50. Use to limit processing time for large PDFs."},"pdf_base64":{"type":"string","description":"Base64-encoded PDF file content. Decode a PDF file to base64 and pass it here. Max ~10 MB (unencoded)."}}},"responseSchema":{"type":"json","example":{"data":{"text":"Quarterly Financial Report Q1 2026\n\nExecutive Summary\nTotal revenue increased by 23% year-over-year...","pages":[{"page":1,"text":"Quarterly Financial Report Q1 2026\n\nExecutive Summary","char_count":54},{"page":2,"text":"Table of Contents\n1. Revenue Overview\n2. Cost Analysis","char_count":58}],"metadata":{"title":"Q1 2026 Financial Report","author":"Finance Department","creator":"Adobe Acrobat"},"page_count":12,"extracted_at":"2026-04-10T14:00:00.000Z","file_size_bytes":245760},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0055","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.0055/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0055","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0055","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cv4Tz4pIgxQNxIGyq6RI_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0055","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts full text content and metadata from a base64-encoded PDF file, returning per-page text and document metadata.","exampleAgentPrompt":"Can you pull out all the text from this PDF I'm uploading — it's about 12 pages long — and give me the content page by page along with whatever metadata like title and author you can find?","exampleUseCases":[{"title":"Financial report data extraction","prompt":"I have a quarterly financial report PDF — can you extract all the text from it so I can analyze the revenue numbers? It's about 20 pages, please process all of them."},{"title":"Legal contract review prep","prompt":"Extract the full text from this contract PDF so I can review the clauses — keep it organized by page so I know where each section comes from."},{"title":"Academic paper ingestion","prompt":"I've got a research paper in PDF format, can you pull out all the text and metadata like the title and author so I can load it into my notes system?"}],"resultDescription":"Returns a JSON object containing the full concatenated text of the PDF, an array of per-page objects each with page number, text, and character count, document metadata (title, author, creator), total page count, extraction timestamp, and original file size in bytes.","failureModes":["PDF exceeds ~10 MB base64 size limit — server rejects or truncates input","Malformed or corrupted base64 string — parsing error returned","Scanned image-only PDFs with no embedded text layer — empty or near-empty text output","Encrypted or password-protected PDFs — extraction fails or returns no content","max_pages set too low — only partial document text returned"],"whenToPreferThis":"Choose this endpoint when you need to programmatically extract text and metadata from a PDF without setting up a local PDF parsing library or managing infrastructure. Ideal for agent workflows that receive PDFs as inputs and need their textual content for downstream analysis, summarization, or storage. At $0.004 per call with no API key required, it suits pay-per-use pipelines processing occasional or variable PDF volumes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:42:02.992Z","isFirstParty":false,"canonicalSlug":"agentsvc-io-pdf-text-extraction-b659ce08"}