{"uid":"cap_CtdZvrsGW-x2Nm2yCzsMd","slug":"docextract-pdf-to-structured-json-a2e1ac82","name":"DocExtract — PDF to Structured JSON","description":"Upload a PDF and receive structured extraction: tables, line items, totals, parties, dates, full text, and metadata. Payment via x402 upto scheme: the client authorizes up to $0.10 and the server settles the actual per-page price ($0.02 + $0.005/page). Terms of service: GET /terms (free).","url":"https://x402-docextract.onrender.com/extract?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The PDF document"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wqB63PboxpIAEywjNMUZG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Uploads a PDF and returns structured JSON extraction including tables, line items, totals, parties, dates, full text, and document metadata","exampleAgentPrompt":"Can you extract all the tables, line items, totals, and party names from this PDF invoice and give me the results as structured data?","exampleUseCases":[{"title":"Invoice line item extraction","prompt":"I have a supplier invoice PDF — can you pull out all the line items, unit prices, quantities, and the grand total so I can import them into our accounting system?"},{"title":"Contract party and date parsing","prompt":"Extract all the parties, effective dates, and key terms from this contract PDF so I can review them without reading the whole document."},{"title":"Financial statement table extraction","prompt":"I've got a PDF of our quarterly financial statement — please extract all the tables and numerical totals so I can analyze the figures in a spreadsheet."}],"resultDescription":"A structured JSON object containing extracted tables, line items, totals, named parties, dates, full document text, and metadata such as page count and document structure — priced at $0.02 base plus $0.005 per page, settled via x402 up-to payment authorization.","failureModes":["Non-PDF file uploaded — server rejects binary that is not a valid PDF","Corrupted or password-protected PDF — extraction fails or returns partial data","Scanned image-only PDF with no OCR layer — text extraction may be empty or incomplete","Network timeout on very large PDFs — upload or processing may time out","Payment authorization insufficient — if actual cost exceeds the $0.10 cap, the call may be rejected"],"whenToPreferThis":"Choose this endpoint when you need to extract structured information (tables, line items, parties, dates, totals) from PDF documents programmatically, especially for financial, legal, or business documents. Prefer it over generic text extraction when structured JSON output and per-field parsing are required, and over OCR-only tools when semantic structure (line items, totals, parties) matters as much as raw text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T00:30:45.385Z","isFirstParty":false,"canonicalSlug":"docextract-pdf-to-structured-json-a2e1ac82"}