# JSON Schema Validator API

> JSON Schema Validator API is a paid API for AI agents from validate.yankii.fr, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Validates any JSON value against a JSON Schema (draft-07, Ajv) and returns a validity flag plus detailed error paths.

## Facts

- Endpoint: POST https://validate.yankii.fr/v1/validate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-schema-validator-api-c50464a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1rBgwomT3dbaYDigiLMCL

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability json-schema-validator-api-c50464a9 -d '<json body>'
```

Example prompt: Check if this JSON object is valid against my schema — the data is {"name":"Alice","age":30} and the schema requires name to be a string and age to be an integer greater than 0.

## When to prefer this

Choose this endpoint when you need server-side JSON Schema draft-07 validation powered by Ajv with detailed per-field error paths, especially in automated pipelines where you cannot run Ajv locally or need a language-agnostic HTTP-based validation step. Prefer it over client-side validation libraries when the validating agent lacks a JavaScript runtime or when you want a consistent, auditable validation service with a timestamp.

## Known failure modes

- Missing or malformed 'schema' field returns an error response
- Invalid JSON in request body causes a parse error
- Schema references external $refs that cannot be resolved may fail validation
- Very deeply nested schemas may hit processing limits
- Network timeout if the service is unavailable

## How this service works

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

## Output

Returns a JSON object with a 'valid' boolean, an 'errors' array containing detailed Ajv validation error objects with instance paths and messages for each failure, and a 'validatedAt' ISO timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "description": "Any JSON value to validate"
  },
  "schema": {
   "type": "object",
   "description": "JSON Schema (draft-07) to validate against"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-schema-validator-api-c50464a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from validate.yankii.fr](https://www.zero.xyz/host/validate.yankii.fr/llms.txt)
