Skip to content
Fourohtwo

Rule-based extraction of named fields from text

agent.pocket.network/v1/structured-extraction

Rule-based extraction of named fields from text; not a language model, it returns only what the text states. POST /v1/extract with {text, schema}: schema is a JSON Schema, a list of field names, or {fields: {name: regex}}. Built-in fields include email, phone, date, url, money and company; other fields come from "Label: value" lines. Pay per request in USDC; no account, no API key.

BaseAnswering
POSThttps://agent.pocket.network/v1/structured-extraction

Uptime100% of 5 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://agent.pocket.network/v1/structured-extraction", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"schema":["email"],"text":"Contact: john@example.com"}),
});
console.log(await res.json());

Example input

{
  "schema": [
    "email"
  ],
  "text": "Contact: john@example.com"
}

More from Pocket NetworkProvider status