Skip to content
Fourohtwo

x402.agentindex.world/extract

Extract structured data from a URL or raw text into strict JSON matching a schema you provide. Fields the content doesn't support come back null - never an invented or approximate value, and an unmatchable schema returns an explicit error. Try GET /extract/sample.

BaseAnswering
POSThttps://x402.agentindex.world/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://x402.agentindex.world/extract", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"schema":{"properties":{"in_stock":{"type":"boolean"},"price":{"type":"number"},"product_name":{"type":"string"}},"type":"object"},"text":"Widget Pro is our flagship gadget, priced at $29.99 and currently in stock."}),
});
console.log(await res.json());

Example input

{
  "schema": {
    "properties": {
      "in_stock": {
        "type": "boolean"
      },
      "price": {
        "type": "number"
      },
      "product_name": {
        "type": "string"
      }
    },
    "type": "object"
  },
  "text": "Widget Pro is our flagship gadget, priced at $29.99 and currently in stock."
}