{"uid":"cap_tygr-VNxrHiX23XzqS9xJ","slug":"extractpdf-pdf-docx-text-extraction-api-e29a172a","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/x402?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_5G1BNYjaVHF3dEMVUm-HK","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 publicly accessible PDF or DOCX documents, returning character count, page count, format, and timestamp for $0.01 USDC per call with no account required.","exampleAgentPrompt":"Can you extract all the text from this PDF for me? Here's the URL: https://example.com/report.pdf","exampleUseCases":[{"title":"Research paper text extraction","prompt":"There's a research paper at https://arxiv.org/pdf/2301.00001.pdf — can you pull out all the text so I can summarize it?"},{"title":"Contract review from DOCX link","prompt":"I need you to read this contract at https://docs.example.com/contract.docx and tell me what the payment terms are — start by extracting the full text."},{"title":"Automated document ingestion pipeline","prompt":"Every time I give you a PDF URL from our supplier portal, extract the full text so I can feed it into my analysis workflow — here's the first one: https://supplier.example.com/invoice_001.pdf"}],"resultDescription":"Returns a JSON object containing the full extracted plain text, character count, page count (for PDFs), the detected format (pdf, docx, or text), the source URL, and an ISO 8601 timestamp of when extraction occurred.","failureModes":["URL is not publicly accessible or returns a non-200 response — extraction fails with an error","URL points to a file that is not a PDF or DOCX — unsupported format error","Password-protected or encrypted PDF — text cannot be extracted","Scanned PDF with no embedded text layer (image-only) — returns empty or minimal text","Network timeout reaching the remote document URL — extraction fails","Malformed or corrupted document file — parsing error returned"],"whenToPreferThis":"Choose this endpoint when you need to programmatically extract plain text from a PDF or DOCX document available at a public URL, with no account setup or API key management. It is especially suited for AI agent pipelines that encounter document URLs dynamically and need fast, cheap, pay-per-use access ($0.01 USDC per call) without committing to a subscription. Prefer it over general-purpose scraping APIs when the target is specifically a PDF or DOCX file rather than an HTML webpage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T12:18:25.986Z","isFirstParty":false,"canonicalSlug":"extractpdf-pdf-docx-text-extraction-api-00eb2363"}