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

WhenResultHTTPTimePrice
2 h agoExpected HTTP 402, got 41041039 ms-
6 h agoExpected HTTP 402, got 410410251 ms-
11 h agoExpected HTTP 402, got 410410179 ms-
15 h agoExpected HTTP 402, got 41041058 ms-
19 h agoExpected HTTP 402, got 41041041 ms-
23 h agoExpected HTTP 402, got 41041034 ms-
27 h agoExpected HTTP 402, got 41041032 ms-
31 h agoExpected HTTP 402, got 410410115 ms-
35 h agoExpected HTTP 402, got 410410107 ms-
40 h agoExpected HTTP 402, got 41041039 ms-
43 h agoExpected HTTP 402, got 41041039 ms-
2 days agoExpected HTTP 402, got 41041035 ms-
2 days agoExpected HTTP 402, got 41041039 ms-
2 days agoExpected HTTP 402, got 41041058 ms-
2 days agoPassed402571 ms$0.03