25trust / 100
Extract Json
by Aayat AI in Search & web
x402 APIFailing, checked 2 h ago
AI structured extraction: give a URL (web page, PDF, Word, Excel...) or text plus your own JSON Schema, get back JSON that fits it. POST {"url": "...", "schema": {"type": "object", "properties": {...}}, "instructions": "optional"}. Great for prices, contacts, specs, events, invoices and tables. Uses Llama 3.3 70B in JSON mode. Up to 40,000 characters of source; failures are not charged.
POST https://aayatai.com/extract-json
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 6.7%
- Response time
- 571 ms typical, 571 ms slowest 5%
- Last check
- 2 h ago: Expected HTTP 402, got 410
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://aayatai.com/extract-json" \
-H "content-type: application/json" \
-d '{"schema":{"properties":{"purpose":{"type":"string"},"title":{"type":"string"}},"required":["title"],"type":"object"},"url":"https://example.com"}'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%2Faayatai.com%2Fextract-json
const res = await pay("https://aayatai.com/extract-json", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"schema":{"properties":{"purpose":{"type":"string"},"title":{"type":"string"}},"required":["title"],"type":"object"},"url":"https://example.com"}),
});
console.log(await res.json());Example input
{
"schema": {
"properties": {
"purpose": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"title"
],
"type": "object"
},
"url": "https://example.com"
}Example output
{
"data": {
"purpose": "Reserved for use in documentation examples.",
"title": "Example Domain"
},
"model": "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
"source": {
"chars": 230,
"title": "Example Domain",
"truncated": false,
"url": "https://example.com/"
}
}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 |
|---|---|---|---|---|
| 2 h ago | Expected HTTP 402, got 410 | 410 | 39 ms | - |
| 6 h ago | Expected HTTP 402, got 410 | 410 | 251 ms | - |
| 11 h ago | Expected HTTP 402, got 410 | 410 | 179 ms | - |
| 15 h ago | Expected HTTP 402, got 410 | 410 | 58 ms | - |
| 19 h ago | Expected HTTP 402, got 410 | 410 | 41 ms | - |
| 23 h ago | Expected HTTP 402, got 410 | 410 | 34 ms | - |
| 27 h ago | Expected HTTP 402, got 410 | 410 | 32 ms | - |
| 31 h ago | Expected HTTP 402, got 410 | 410 | 115 ms | - |
| 35 h ago | Expected HTTP 402, got 410 | 410 | 107 ms | - |
| 40 h ago | Expected HTTP 402, got 410 | 410 | 39 ms | - |
| 43 h ago | Expected HTTP 402, got 410 | 410 | 39 ms | - |
| 2 days ago | Expected HTTP 402, got 410 | 410 | 35 ms | - |
| 2 days ago | Expected HTTP 402, got 410 | 410 | 39 ms | - |
| 2 days ago | Expected HTTP 402, got 410 | 410 | 58 ms | - |
| 2 days ago | Passed | 402 | 571 ms | $0.03 |