Extract data from a document
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.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://agent-data-tools.revmesh2074.workers.dev/document/extract
| Category | Image and media |
|---|---|
| Provider host | agent-data-tools.revmesh2074.workers.dev |
| Networks | eip155:137, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.03 | 275 ms |
| 2026-11-25 | valid payment request | 402 | $0.03 | 282 ms |
| 2026-11-24 | valid payment request | 402 | $0.03 | 261 ms |
| 2026-11-23 | valid payment request | 402 | $0.03 | 339 ms |
| 2026-11-22 | valid payment request | 402 | $0.03 | 284 ms |
| 2026-11-21 | valid payment request | 402 | $0.03 | 308 ms |
| 2026-11-20 | valid payment request | 402 | $0.03 | 331 ms |
| 2026-11-19 | valid payment request | 402 | $0.03 | 42 ms |
| 2026-11-18 | valid payment request | 402 | $0.03 | 32 ms |
| 2026-11-17 | valid payment request | 402 | $0.03 | 32 ms |
| 2026-11-16 | valid payment request | 402 | $0.03 | 21 ms |
| 2026-11-15 | valid payment request | 402 | $0.03 | 41 ms |
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"fields": "invoice",
"url": "https://raw.githubusercontent.com/invoice-x/invoice2data/master/tests/compare/coolblue1.pdf"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$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"
}