Extract JSON fields from text
agent-data-tools.revmesh2074.workers.dev/ai/extract-json
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.
GET
https://agent-data-tools.revmesh2074.workers.dev/ai/extract-jsonUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent-data-tools.revmesh2074.workers.dev/ai/extract-json?fields=invoice_number%2Ccompany%2Cdue_date%2Ctotal%2Ccurrency&text=Invoice+1043+from+Acme+AB%2C+due+2026-11-01%2C+total+2+450+SEK+incl.+VAT.");
console.log(await res.json());Example input
{
"fields": "invoice_number,company,due_date,total,currency",
"text": "Invoice 1043 from Acme AB, due 2026-11-01, total 2 450 SEK incl. VAT."
}