Skip to content
Fourohtwo

Extract structured JSON from messy text

canonicalhash-production.up.railway.app/v1/structure/paid

Extract structured JSON from messy text. Deterministic Tier 1 (regex, exact) handles labeled inputs in under 50ms; Needle 3 model fallback handles free-form text. Use when an agent needs to turn emails, logs, tickets, or notes into fields it can act on. $0.005 per call. No charge on extraction failure. Free verification at POST /v1/verify.

BaseDown
POSThttps://canonicalhash-production.up.railway.app/v1/structure/paid

Uptime0.0% 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://canonicalhash-production.up.railway.app/v1/structure/paid", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"text":"Contact: Alice Smith, alice@example.com, ACME Corp, $1,250.00 due on 2026-11-01","schema":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"amount":{"type":"number"},"company":{"type":"string"},"due_date":{"type":"string"}}}}),
});
console.log(await res.json());

Example input

{
  "text": "Contact: Alice Smith, alice@example.com, ACME Corp, $1,250.00 due on 2026-11-01",
  "schema": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string"
      },
      "email": {
        "type": "string"
      },
      "amount": {
        "type": "number"
      },
      "company": {
        "type": "string"
      },
      "due_date": {
        "type": "string"
      }
    }
  }
}

More from canonicalhashProvider status