{"uid":"cap_1e3J4lkZW47PedVdKS3MX","slug":"402utils-pdf-text-extractor-a4a5a3e3","name":"402utils PDF Text Extractor","description":"Extract text from a PDF: send the PDF bytes directly, or a JSON body with a public {url}. Returns the full text, per-page text, and metadata (page count, title, author). Text layer only — scanned/image-only PDFs return empty text with a no_text_layer warning (no OCR). Max 10 MB.","url":"https://402utils.com/v1/pdf-extract","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public http(s) URL of a PDF (alternative to sending bytes)."}}},"responseSchema":{"type":"json","example":{"meta":{"title":"Invoice","pageCount":1},"text":"Invoice #1042 …","pages":[{"page":1,"text":"Invoice #1042 …"}]}},"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_g5xaFzUrzBTdWCPSXyWNo","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":"Extracts full text, per-page text, and metadata from a PDF file (text layer only, no OCR), accepting either raw PDF bytes or a public URL.","exampleAgentPrompt":"Can you pull all the text out of this PDF for me? Here's the public URL: https://example.com/report.pdf — I need the full text and per-page breakdown.","exampleUseCases":[{"title":"Aggregate contract clauses from PDF agreements","prompt":"I have a bunch of vendor contracts in PDF format that I need to review. Can you extract all the text from each one and break down what's on each page? I also need to know who authored each document if that info is available."},{"title":"Index research papers for content discovery","prompt":"I'm trying to build a searchable index of academic papers. Can you pull the text from this research PDF and tell me how many pages it has? I'd like the full text plus a breakdown of what's on each page so I can organize the content properly."},{"title":"Audit scanned documents for compliance","prompt":"We need to process some PDF reports from our suppliers to check for compliance issues. Can you extract all the readable text from this PDF file and give me the page count and document title? I need to make sure the text layer is actually readable before we spend time reviewing it."}],"resultDescription":"Returns the complete extracted text from the PDF, an array of per-page text strings, and metadata including page count, document title, and author. If the PDF has no text layer (e.g. scanned images), returns empty text with a no_text_layer warning. Max supported file size is 10 MB.","failureModes":["Scanned or image-only PDF returns empty text with a no_text_layer warning — OCR is not performed","PDF exceeds 10 MB size limit — request is rejected","Invalid or inaccessible public URL returns a fetch/network error","Malformed PDF bytes result in a parsing error","Password-protected PDFs may fail to parse"],"whenToPreferThis":"Use this endpoint when you need to extract the text layer from a PDF document — either by uploading the raw bytes or providing a public URL. Best for text-based PDFs (not scanned images). Prefer this over general document converters when you specifically need per-page text breakdown and PDF metadata (title, author, page count) in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:31:19.875Z","isFirstParty":false}