{"slug":"agent-data-tools-revmesh2074-workers-dev-ai-extract-json-8f1103","title":"Extract JSON fields from text","host":"agent-data-tools.revmesh2074.workers.dev","method":"GET","resource":"https://agent-data-tools.revmesh2074.workers.dev/ai/extract-json","category":"search","description":"Extract JSON fields from text. Pull named fields out of unstructured text (emails, invoices, listings, bios) and get them back as a JSON object, with null for anything not present. Use to turn messy text into structured data for an agent.","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":36,"reported_calls_30d":4,"reported_payers_30d":2,"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_number,company,due_date,total,currency","text":"Invoice 1043 from Acme AB, due 2026-11-01, total 2 450 SEK incl. VAT."},"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)","examples":["invoice_number,company,due_date,total,currency"],"type":"string"},"text":{"description":"Source text, up to 12,000 characters","examples":["Invoice 1043 from Acme AB, due 2026-11-01, total 2 450 SEK incl. VAT."],"type":"string"}},"required":["text","fields"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"data":{"properties":{"company":{"type":"string"},"currency":{"type":"string"},"due_date":{"type":"string"},"invoice_number":{"type":"string"},"total":{"type":"number"}},"type":"object"},"missing":{"items":{},"type":"array"},"model":{"type":"string"}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":36,"error":null}],"description_full":"Extract JSON fields from text. Pull named fields out of unstructured text (emails, invoices, listings, bios) and get them back as a JSON object, with null for anything not present. Use to turn messy text into structured data for an agent.","last_updated":"2026-10-23T10:13:59.549Z","schemes":["exact"]}