$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/extract42
Calls / 30d
5
Unique payers / 30d
Sep 10
Last called
exact
Payment scheme
Call this service
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 -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
0x9876af0f6d8ed5155cd02d1ca56d128601612690USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of AI & Inference and the homepage with a featured placement.
More from SchemaSure & similar services
SchemaSure · Extract Image
schemasure.com
Extract strict, JSON-Schema-valid typed JSON from a PNG, JPEG, or WebP document image. Failed extraction calls are not settled. Always-paid x402 V2 image API.
BlockRun.AI · EXA Contents
blockrun.ai
Extract full text content from specific URLs. Priced at $0.002/URL — total = urls.length × $0.002.
BlockRun.AI · EXA Search
blockrun.ai
Neural and keyword web search. Optional category filter: company, research paper, news, pdf, github, tweet, personal site, linkedin profile, financial report.