{"slug":"agent-data-tools-revmesh2074-workers-dev-document-extract-1e6fe1","title":"Extract data from a document","host":"agent-data-tools.revmesh2074.workers.dev","method":"GET","resource":"https://agent-data-tools.revmesh2074.workers.dev/document/extract","category":"image","description":"Extract data from a document. Extract named fields from a document as JSON: give a PDF, Word, Excel or PowerPoint file, a scan or a photo (PNG, JPEG, WebP) by URL or in a POST body (up to 10 MB; images 3 MB) and the field names you want, such as invoice_number, total, due_date. An AI model reads the","price_listed":0.03,"price_asked":0.03,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":284,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"fields":"invoice","url":"https://raw.githubusercontent.com/invoice-x/invoice2data/master/tests/compare/coolblue1.pdf"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"fields":{"description":"Comma-separated field names to extract (1-30). For rows, give the row keys in brackets: line_items[description,quantity,amount]. Or one word, invoice or receipt, for the usual fields of that document with its line items","examples":["invoice"],"type":"string"},"url":{"description":"Absolute public http(s) URL of the file (or send the file in a POST body instead)","examples":["https://raw.githubusercontent.com/invoice-x/invoice2data/master/tests/compare/coolblue1.pdf"],"type":"string"}},"required":["url","fields"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"charsRead":{"type":"number"},"data":{"properties":{"currency":{"type":"string"},"customer_name":{"type":"string"},"customer_vat_number":{},"due_date":{},"iban":{"type":"string"},"invoice_date":{"type":"string"},"invoice_number":{"type":"string"},"line_items":{"items":{"properties":{"amount":{"type":"number"},"description":{"type":"string"},"quantity":{"type":"number"},"unit_price":{"type":"number"}},"type":"object"},"type":"array"},"payment_reference":{},"subtotal":{"type":"number"},"supplier_address":{"type":"string"},"supplier_name":{"type":"string"},"supplier_vat_number":{"type":"string"},"tax_amount":{"type":"number"},"total":{"type":"number"}},"type":"object"},"missing":{"items":{"type":"string"},"type":"array"},"model":{"type":"string"},"truncated":{"type":"boolean"},"type":{"type":"string"},"url":{"type":"string"}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":275,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":282,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":261,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":339,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":284,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":308,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":331,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":42,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":32,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":32,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":21,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":41,"error":null}],"description_full":"Extract data from a document. Extract named fields from a document as JSON: give a PDF, Word, Excel or PowerPoint file, a scan or a photo (PNG, JPEG, WebP) by URL or in a POST body (up to 10 MB; images 3 MB) and the field names you want, such as invoice_number, total, due_date. An AI model reads the file, scans by OCR, and returns one JSON object, with null where a value is not stated. Use to turn invoices, receipts, orders and contracts into rows.","last_updated":"2026-11-15T04:50:17.667Z","schemes":["exact"]}