S

SchemaSure · Extract

by SchemaSure

POSTBase

$0.01

per call · USD Coin on Base

Extract strict, JSON-Schema-valid typed JSON from unstructured text or HTML. Failed extraction calls are not settled. Primary x402 V2 API for production agents.

Endpoint

POST https://schemasure.com/v2/extract

42

Calls / 30d

5

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://schemasure.com/v2/extract", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": "Invoice #A-1042 — Acme Corp. Total due: $1,299.00 USD on 2026-08-01.",
    "schema": {
      "additionalProperties": false,
      "properties": {
        "currency": {
          "enum": [
            "USD",
            "EUR",
            "GBP"
          ],
          "type": "string"
        },
        "dueDate": {
          "format": "date",
          "type": "string"
        },
        "invoiceNumber": {
          "type": "string"
        },
        "total": {
          "type": "number"
        }
      },
      "required": [
        "invoiceNumber",
        "total",
        "currency",
        "dueDate"
      ],
      "type": "object"
    }
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://schemasure.com/v2/extract" \
  -H "Content-Type: application/json" \
  -d '{"input":"Invoice #A-1042 — Acme Corp. Total due: $1,299.00 USD on 2026-08-01.","schema":{"additionalProperties":false,"properties":{"currency":{"enum":["USD","EUR","GBP"],"type":"string"},"dueDate":{"format":"date","type":"string"},"invoiceNumber":{"type":"string"},"total":{"type":"number"}},"required":["invoiceNumber","total","currency","dueDate"],"type":"object"}}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "currency": "USD",
    "dueDate": "2026-08-01",
    "invoiceNumber": "A-1042",
    "total": 1299
  },
  "meta": {
    "latencyMs": 640,
    "repairs": 0,
    "validated": true
  }
}

Payment details

Pay to0x9876af0f6d8ed5155cd02d1ca56d128601612690
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from SchemaSure & similar services