81trust / 100

Validate

by JSON Schema Validator in Other

x402 APIPassing, checked 14 min ago

Validate JSON data against a JSON Schema (draft-07, Ajv). Returns valid + detailed errors with instance paths.

POST https://validate.yankii.fr/v1/validate

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
173 ms typical, 173 ms slowest 5%
Last check
14 min ago
Next check
in 17 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://validate.yankii.fr/v1/validate" \
  -H "content-type: application/json" \
  -d '{"data":{"age":30,"name":"John"},"schema":{"properties":{"age":{"minimum":0,"type":"number"},"name":{"type":"string"}},"required":["name","age"],"type":"object"}}'
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%2Fvalidate.yankii.fr%2Fv1%2Fvalidate
const res = await pay("https://validate.yankii.fr/v1/validate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"data":{"age":30,"name":"John"},"schema":{"properties":{"age":{"minimum":0,"type":"number"},"name":{"type":"string"}},"required":["name","age"],"type":"object"}}),
});
console.log(await res.json());

Example input

{
  "data": {
    "age": 30,
    "name": "John"
  },
  "schema": {
    "properties": {
      "age": {
        "minimum": 0,
        "type": "number"
      },
      "name": {
        "type": "string"
      }
    },
    "required": [
      "name",
      "age"
    ],
    "type": "object"
  }
}

Example output

{
  "errors": [],
  "valid": true,
  "validatedAt": "2026-10-03T10:00:00.000Z"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
14 min agoPassed402173 ms$0.01
5 h agoPassed402216 ms$0.01