{"uid":"cap_eCDxI7I93uevm8Re9cIuf","slug":"document-extraction-hub-pay-per-page-ocr-structured-json-extraction-53ff0b65","name":"Document Extraction Hub — Pay-Per-Page OCR & Structured JSON Extraction","description":"PDF or picture in, structured JSON out, with a page and a position behind every field, plus every QR code and barcode decoded. Paid per page in USDC over x402. No signup, no API key.","url":"https://doc.netzhandwerker.de/document?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public http or https URL of the PDF. Use this or \"pdf_base64\", not both."},"pages":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"integer","minimum":1}}],"description":"Optional page range, for example \"1-5\", \"2,4,7\" or [1,2,3]. At most 20 pages per call."},"schema":{"type":"object","description":"Optional JSON Schema. Every property is looked up in the document and returned with value, confidence and source. A property that is not in the document stays empty."},"pdf_base64":{"type":"string","description":"The PDF as base64. Use this or \"url\", not both."},"include_raw":{"type":"boolean","default":false,"description":"With a schema, also return header data, tables and key value pairs alongside the mapped result."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JQFVfLwA9RqAjqQvXF86r","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured JSON data with field positions and confidence scores from PDFs or images, decoding QR codes and barcodes, paid per page in USDC via x402 with no signup required.","exampleAgentPrompt":"Extract all fields from this invoice PDF at https://example.com/invoice.pdf — map them to my schema with vendor name, invoice number, line items, and total amount, and give me confidence scores and page positions for each field.","exampleUseCases":[{"title":"Invoice processing for accounts payable","prompt":"I have a scanned invoice at https://example.com/invoices/march-2024.pdf — extract the vendor name, invoice number, date, line items, and total due into structured JSON, and tell me where on the page each field was found."},{"title":"Barcode and QR code extraction from shipping label","prompt":"Pull all the QR codes and barcodes out of this shipping label image at https://logistics.example.com/label-shipment-4821.pdf and give me their decoded values."},{"title":"Contract field digitization with custom schema","prompt":"Parse pages 1 through 5 of this contract at https://legal.example.com/contract-draft.pdf and extract party names, effective date, and termination clause into my schema, with confidence scores for each."}],"resultDescription":"A structured JSON object containing: mapped field values from the document matched to the provided schema (with confidence scores and page/position coordinates for each), decoded QR code and barcode values, and optionally raw extracted tables, headers, and key-value pairs if include_raw is enabled.","failureModes":["Document URL is not publicly accessible — returns an error indicating the URL could not be fetched","PDF is encrypted or password-protected — extraction fails or returns empty fields","Page range exceeds the 20-page limit per call — returns a validation error","Both url and pdf_base64 are supplied simultaneously — returns a schema validation error","Low-quality scan or image resolution causes OCR confidence to be very low — fields returned with low confidence scores or empty","Payment via x402 fails or is insufficient — request is rejected with a 402 status before processing"],"whenToPreferThis":"Choose this endpoint when you need structured JSON output from PDFs or document images with field-level provenance (page number and position), especially when your use case requires mapping document content to a custom schema. Ideal for invoice processing, form digitization, contract parsing, and logistics label decoding. Preferred over general OCR tools when you need per-field confidence scores, barcode/QR decoding in the same call, and no-signup pay-per-page billing via USDC x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:33:18.996Z","isFirstParty":false,"canonicalSlug":"document-extraction-hub-pay-per-page-ocr-structured-json-extraction-53ff0b65"}