{"uid":"cap_nhlOCCe-bJ9j5H8wLMTr3","slug":"extractpdf-pdf-docx-text-extraction-api-00eb2363","name":"ExtractPDF — PDF & DOCX Text Extraction API","description":"Extract text from any PDF or DOCX for $0.005 USDC. No API key, no subscription. Pay per use via x402 on Base, Arc, or Polygon.","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. Must return the file directly (not an HTML page). Example: https://example.com/report.pdf"}}},"responseSchema":{"type":"object","required":["url","text","chars","format","extracted_at"],"properties":{"url":{"type":"string","description":"The URL that was fetched"},"info":{"type":"object","properties":{"title":{"type":"string","description":"Document title from metadata"},"author":{"type":"string","description":"Document author from metadata"},"subject":{"type":"string","description":"Document subject from metadata"}},"description":"Document metadata (PDF only)"},"text":{"type":"string","description":"Extracted plain text content, up to 50,000 characters"},"chars":{"type":"integer","description":"Total character count of the extracted text"},"pages":{"type":"integer","description":"Total page count (PDF only)"},"format":{"enum":["pdf","docx","text"],"type":"string","description":"Detected document format"},"extracted_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the extraction was performed"}}},"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":null,"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-10-15T12:30:31.756Z","isFirstParty":false,"canonicalSlug":"extractpdf-pdf-docx-text-extraction-api-00eb2363"}