# JSON Schema Validator

> JSON Schema Validator is a paid API for AI agents from agent-data-toolkit.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Validates a JSON data payload against a provided JSON Schema and returns a detailed list of schema violations

## Facts

- Endpoint: POST https://agent-data-toolkit.onrender.com/validate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-schema-validator-23e1d72f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HtfUIILb2oL-vjj-eg0D4

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-23e1d72f -d '<json body>'
```

Example prompt: Can you validate this JSON object against my schema and give me a detailed list of any violations? Here's the data: {"name": "Alice", "age": "thirty"} and the schema requires name to be a string and age to be an integer.

## When to prefer this

Use this endpoint when you need to validate structured JSON data against a formal JSON Schema specification and require a detailed, machine-readable list of all violations. Prefer this over ad-hoc parsing when you need precise error paths and rule descriptions. Ideal for validating API request/response payloads, user-submitted data, or LLM-generated JSON before downstream processing.

## Known failure modes

- Invalid or malformed JSON submitted as data — returns parse error
- Invalid or malformed JSON Schema supplied — returns schema parse error
- Missing required request body — returns 400 bad request
- Schema references external $ref URIs that cannot be resolved — may return incomplete validation
- Very large JSON payloads may timeout or exceed size limits

## How this service works

Validate JSON data against a JSON Schema and return a detailed list of violations.

## Output

A detailed list of schema violations found in the submitted JSON data, including which fields failed, why they failed, and the schema rules that were violated. Returns an empty violations list if the data is fully valid.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "method"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "data",
      "schema"
     ],
     "properties": {
      "data": {
       "type": "object",
       "description": "object or array to validate (required)"
      },
      "schema": {
       "type": "object",
       "description": "object, the JSON Schema to validate against (required)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "required": [
      "ok",
      "valid"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "valid": {
       "type": "boolean"
      },
      "errors": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "path": {
          "type": "string"
         },
         "message": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-schema-validator-23e1d72f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-toolkit.onrender.com](https://www.zero.xyz/host/agent-data-toolkit.onrender.com/llms.txt)
