Skip to content
Fourohtwo

extract-json.mintfacts.workers.dev/extract

Use this when you need to turn unstructured text (emails, invoices, receipts, job posts, listings, bios, support tickets, chat logs) into JSON matching a schema. Send the text plus a JSON Schema or a list of field names; get back data that validates against it. Missing values come back as null, never invented. Charged only on success.

BaseAnswering
POSThttps://extract-json.mintfacts.workers.dev/extract

Uptime100% of 3 checks 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://extract-json.mintfacts.workers.dev/extract", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"schema":{"properties":{"currency":{"type":"string"},"customer":{"type":"string"},"due_date":{"description":"YYYY-MM-DD","type":"string"},"invoice_number":{"type":"string"},"line_items":{"items":{"properties":{"description":{"type":"string"},"quantity":{"type":"number"},"unit_price":{"type":"number"}},"type":"object"},"type":"array"},"total":{"type":"number"},"vendor":{"type":"string"}},"required),
});
console.log(await res.json());

Example input

{"schema":{"properties":{"currency":{"type":"string"},"customer":{"type":"string"},"due_date":{"description":"YYYY-MM-DD","type":"string"},"invoice_number":{"type":"string"},"line_items":{"items":{"properties":{"description":{"type":"string"},"quantity":{"type":"number"},"unit_price":{"type":"number"}},"type":"object"},"type":"array"},"total":{"type":"number"},"vendor":{"type":"string"}},"required