{"uid":"cap_nhlOCCe-bJ9j5H8wLMTr3","slug":"extractpdf-pdf-docx-text-extraction-api-00eb2363","name":"ExtractPDF — PDF & DOCX Text Extraction API","description":"Pay-per-use PDF and DOCX text extraction API for AI agents. $0.01 USDC per call. No API key, no account, no subscription.","url":"https://www.extractpdf.xyz/api/extract?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Publicly accessible URL of a PDF or DOCX document"}}},"responseSchema":{"type":"object","required":["text","chars","format","extracted_at"],"properties":{"url":{"type":"string"},"text":{"type":"string"},"chars":{"type":"integer"},"pages":{"type":"integer"},"format":{"enum":["pdf","docx","text"],"type":"string"},"extracted_at":{"type":"string","format":"date-time"}}},"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_EZhEkQy4uYJ9yMqw59d32","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":"Extracts plain text from a publicly accessible PDF or DOCX document via URL, returning the content with metadata such as page count, author, and title.","exampleAgentPrompt":"Can you extract all the text from this PDF report for me? Here's the URL: https://example.com/annual-report-2024.pdf — just grab pages 1 through 10.","exampleUseCases":[{"title":"AI agent reading a research paper","prompt":"Pull the full text out of this research paper so I can summarize it — the PDF is at https://arxiv.org/pdf/2401.12345.pdf"},{"title":"Contract review from document URL","prompt":"Extract the text from this contract PDF at https://company.com/contracts/vendor-agreement.pdf so I can check what the termination clause says."},{"title":"Processing a Word document report","prompt":"Can you read the contents of this DOCX file for me? It's at https://internal.example.com/reports/q3-summary.docx — I need the text so I can analyze it."}],"resultDescription":"Returns a JSON object containing the full extracted plain text (up to 50,000 characters), the character count, total page count (for PDFs), the detected format (pdf, docx, or text), and optional metadata fields including the document title, author, and an ISO 8601 timestamp of when extraction occurred.","failureModes":["URL is not publicly accessible or returns a non-200 HTTP response — extraction fails with an error","Document is password-protected or encrypted — text cannot be extracted","File is not a PDF or DOCX (e.g. image-only scanned PDF with no embedded text layer) — returns empty or minimal text","Page range is out of bounds for the document — may return partial or empty text","Document exceeds size limits — extraction may truncate or fail","Network timeout fetching the remote document URL"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to read the text content of a PDF or DOCX document available at a public URL, without requiring API key setup or subscription management. It is ideal for pay-per-use workflows where document parsing is occasional rather than high-volume, and when the agent needs structured metadata (title, author, page count) alongside the extracted text. Prefer this over general-purpose scraping tools when the input is specifically a PDF or DOCX file rather than an HTML web page.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T12:21:26.130Z","isFirstParty":false,"canonicalSlug":"extractpdf-pdf-docx-text-extraction-api-00eb2363"}