← Back to all APIs

Document Extract

$0.02

Extract structured JSON from a document: sections, tables, key-values and caller-named fields. PDF, DOCX, PPTX, XLSX, CSV, EPUB, HTML, text. Deterministic parsing — no OCR, no LLM inference.

POST https://x402.freeq.one/tools/document_extract
Try it (x402 payment flow)

⚡ Try with your wallet — live payment

curl -X POST https://x402.freeq.one/tools/document_extract \ -H "Content-Type: application/json" \ -d '{"document_url":"https://x402.freeq.one/samples/report.pdf","url":"https://x402.freeq.one/samples/report.pdf","filename":"report.pdf","max_length":100000}'

Without payment, the server returns 402 Payment Required with x402 challenge details. A paying agent signs a USDC transaction on Base and retries with the payment header.