Skip to content
Fourohtwo

Messy text + JSON Schema in, clean JSON out

freetier-agent-api.pages.dev/api/extract-json

Messy text + JSON Schema in, clean JSON out. Uses a small LLM (Cloudflare Workers AI, Llama 3.1 8B, JSON mode) when available, else a deterministic key:value/regex extractor; the result is type-checked against your schema and missing fields are null. Limits: text <= 6,000 chars, schema <= 30 top-level properties (flat objects, arrays of scalars); the model can misread ambiguous text, so check impo

BaseAnswering
GEThttps://freetier-agent-api.pages.dev/api/extract-json

Uptime100% of 2 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://freetier-agent-api.pages.dev/api/extract-json?schema=%7B%22type%22%3A%22object%22%2C%22properties%22%3A%7B%22order_id%22%3A%7B%22type%22%3A%22string%22%7D%2C%22company%22%3A%7B%22type%22%3A%22string%22%7D%2C%22total%22%3A%7B%22type%22%3A%22number%22%7D%2C%22currency%22%3A%7B%22type%22%3A%22string%22%7D%2C%22due_date%22%3A%7B%22type%22%3A%22string%22%2C%22format%22%3A%22date%22%7D%2C%22email%22%3A%7B%22type%22%3A%22string%22%2C%22format%22%3A%22email%22%7D%7D%7D&text=Order+%234471+from+ACME+GmbH%2C+total+EUR+1.299%2C00%2C+due+2026-11-30%2C+contact+billing%40acme.example");
console.log(await res.json());

Example input

{
  "schema": "{\"type\":\"object\",\"properties\":{\"order_id\":{\"type\":\"string\"},\"company\":{\"type\":\"string\"},\"total\":{\"type\":\"number\"},\"currency\":{\"type\":\"string\"},\"due_date\":{\"type\":\"string\",\"format\":\"date\"},\"email\":{\"type\":\"string\",\"format\":\"email\"}}}",
  "text": "Order #4471 from ACME GmbH, total EUR 1.299,00, due 2026-11-30, contact billing@acme.example"
}

More from Agent Extraction APIProvider status