# apiacre.com JSON Schema Validator

> apiacre.com JSON Schema Validator is a paid API for AI agents from apiacre.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Validates caller-supplied JSON against a JSON Schema Draft 2020-12 contract, returning deterministic error pointers, format checks, and input fingerprints without remote reference resolution.

## Facts

- Endpoint: POST https://apiacre.com/v1/data/schema-validate
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apiacre-com-json-schema-validator-854131e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hyhiO5bjkFExDj93MJkLt

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 apiacre-com-json-schema-validator-854131e3 -d '<json body>'
```

Example prompt: Can you validate this JSON payload against my Draft 2020-12 schema and tell me exactly which fields are invalid and why, with precise error pointers?

## When to prefer this

Prefer this endpoint when you need deterministic, reproducible JSON Schema Draft 2020-12 validation with precise JSON Pointer error locations and input fingerprinting, especially when security requires no outbound network calls for remote $ref resolution. Ideal for validating API payloads, configuration files, or user-submitted data against a known bounded schema contract.

## Known failure modes

- Schema references external URIs — rejected because remote reference resolution is disabled
- Malformed JSON input — parse error returned before validation begins
- Invalid JSON Schema itself — schema validation error returned
- Payload exceeds size bounds — request rejected with size limit error
- Unsupported JSON Schema draft version — only Draft 2020-12 is supported

## How this service works

Validate JSON data against a bounded JSON Schema Draft 2020-12 contract for nested objects, arrays, required properties, types, enums, formats, lengths, patterns, and numeric bounds; return deterministic instance and schema JSON Pointers, explicit error truncation, input hashes, and no remote reference resolution.

## Output

Returns a validation result indicating whether the JSON conforms to the supplied schema, along with deterministic error pointers (JSON Pointer paths) for each violation, format check results, an input fingerprint for the submitted document, and a bounded schema conformance status — with no remote $ref resolution performed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "object"
  },
  "instance": {},
  "max_errors": {
   "type": "integer"
  },
  "check_formats": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "valid": false,
   "errors": [
    {
     "kind": "instance",
     "keyword": "type",
     "message": "'98' is not of type 'integer'",
     "schemaPath": "/properties/score/type",
     "instancePath": "/score"
    }
   ],
   "schema": {
    "sha256": "9565a3dfc9aaadfaf2b3163f433b954d7d91246b6c225c11a8c16fe42ae841e4",
    "dialect": "https://json-schema.org/draft/2020-12/schema",
    "utf8Bytes": 224,
    "declaredDialect": "https://json-schema.org/draft/2020-12/schema",
    "remoteReferencesAllowed": false
   },
   "instance": {
    "sha256": "43d117eb76b608a0d05820c70320889a6577ff85446e00412b6e6487c1559149",
    "utf8Bytes": 27
   },
   "errorCount": 1,
   "validation": {
    "draft": "2020-12",
    "engine": "python-jsonschema",
    "maxErrors": 25,
    "engineVersion": "4.26.0",
    "formatChecking": true
   },
   "schemaValid": true,
   "instanceValid": false,
   "errorsReturned": 1,
   "errorCountExact": true,
   "errorsTruncated": false
  },
  "meta": {
   "cached": false,
   "sources": [],
   "warnings": [],
   "duration_ms": 42,
   "next_actions": [
    {
     "path": "/v1/data/schema",
     "title": "JSON Schema generator",
     "method": "POST",
     "reason": "Infer the rejected instance's observed Draft 2020-12 shape for comparison wit...",
     "service": "data.schema"
    }
   ]
  },
  "service": "data.schema-validate",
  "version": "1",
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apiacre-com-json-schema-validator-854131e3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apiacre.com](https://www.zero.xyz/host/apiacre.com/llms.txt)
