80trust / 100
Extract Json
by AllTheBot Extract JSON from text in Search & web
x402 APIPassing, checked 4 h ago
Extract structured JSON from unstructured text (invoices, emails, ads, CVs...): name the fields you want, get clean JSON back. Any language, up to 6,000 characters.
POST https://api.zkrobotics.fr/x402/extract-json
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 58 ms typical, 58 ms slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.zkrobotics.fr/x402/extract-json" \
-H "content-type: application/json" \
-d '{"fields":"number, date, total, customer","text":"Invoice #42 dated March 3, 2026, total $120 incl. tax, customer: John Smith."}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.zkrobotics.fr%2Fx402%2Fextract-json
const res = await pay("https://api.zkrobotics.fr/x402/extract-json", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"fields":"number, date, total, customer","text":"Invoice #42 dated March 3, 2026, total $120 incl. tax, customer: John Smith."}),
});
console.log(await res.json());Example input
{
"fields": "number, date, total, customer",
"text": "Invoice #42 dated March 3, 2026, total $120 incl. tax, customer: John Smith."
}Example output
{
"data": {
"customer": "John Smith",
"date": "2026-03-03",
"number": "42",
"total": "$120"
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 58 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.008 to $0.007 |