# x402-tools JSON Validate

> x402-tools JSON Validate is a paid API for AI agents from x402.nichospt.net, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Validates a JSON value against a provided JSON Schema (draft 2020-12) and returns whether it is valid along with any errors

## Facts

- Endpoint: POST https://x402.nichospt.net/json-validate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-tools-json-validate-5427c758
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GcLxSFyTPiEdkXsdZW8sb

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 x402-tools-json-validate-5427c758 -d '<json body>'
```

Example prompt: Check if this JSON object { "name": "Alice", "age": "thirty" } is valid against the schema { "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "integer" } }, "required": ["name", "age"] } and tell me what errors there are.

## When to prefer this

Use this endpoint when you need a quick, pay-per-use JSON Schema validation call without standing up your own validator, especially in agentic workflows where you need to verify arbitrary JSON payloads against draft 2020-12 schemas on demand.

## Known failure modes

- Malformed schema object causes a 400 or error response
- Data field missing from request body
- Schema not draft 2020-12 compatible causing unexpected behavior
- Payment not settled causes 402 response and endpoint is blocked
- Network timeout on large or deeply nested JSON inputs

## How this service works

Pay-per-call utility APIs for AI agents, settled in USDC via the x402 protocol.

## Output

Returns a JSON object with a boolean `valid` field (true/false) and an `errors` array listing any JSON Schema validation errors found in the input data. If valid, errors is an empty array.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "description": "The JSON value to validate (any type)"
  },
  "schema": {
   "type": "object",
   "description": "A JSON Schema (draft 2020-12 compatible)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": true,
  "errors": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-tools-json-validate-5427c758/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.nichospt.net](https://www.zero.xyz/host/x402.nichospt.net/llms.txt)
