{"uid":"cap_xuu_S2vAvFM31W8c_E0-b","slug":"sitecheck-json-schema-validator-17811569","name":"SiteCheck JSON Schema Validator","description":"Validates JSON data against a JSON Schema (draft 2020-12): valid true or false, and up to 50 errors with the instance path, the keyword and the message. Schema and data are each limited to 200 KB. Remote $ref targets are not fetched. No network call.","url":"https://api.sitecheck-api.workers.dev/api/json-validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"description":"Any JSON value to validate"},"schema":{"type":"object","description":"A JSON Schema (object or boolean)"}}},"responseSchema":{"type":"json","example":{"draft":"2020-12","valid":false,"errors":[{"path":"#","keyword":"properties","message":"Property \"id\" does not match schema."},{"path":"#/id","keyword":"type","message":"Instance type \"string\" is invalid. Expected \"integer\"."}],"source":"@cfworker/json-schema","checkedAt":"2026-10-14T07:00:59.162Z","errorCount":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Hw3HIKp5bVqvcgSEM4KBy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates any JSON value against a provided JSON Schema and returns detailed validation errors with paths and keywords","exampleAgentPrompt":"Can you validate this JSON object against my schema and tell me exactly which fields are wrong and why? The data is {\"id\": \"abc\", \"name\": \"Alice\"} and the schema requires id to be an integer.","exampleUseCases":[{"title":"API payload validation before sending","prompt":"Before I send this JSON payload to our partner API, validate it against their schema — the data is {\"orderId\": \"X99\", \"amount\": \"150\"} and the schema says orderId must be an integer and amount must be a number. Tell me what's wrong."},{"title":"CI pipeline schema conformance check","prompt":"Check whether this config JSON {\"version\": 2, \"enabled\": \"yes\", \"retries\": 3} is valid against the schema that requires enabled to be a boolean and version to be a string — give me every error with its path."},{"title":"Debugging malformed API response","prompt":"I got back a JSON response from an external service and I'm not sure it matches our expected schema. Can you validate {\"user\": {\"id\": 42, \"role\": 99}} against the schema that requires role to be a string and flag any mismatches?"}],"resultDescription":"Returns a JSON object indicating the JSON Schema draft used, a boolean 'valid' flag, an array of error objects each containing the JSON path, the failing keyword, and a human-readable message, plus the validator source (@cfworker/json-schema), the timestamp of the check, and a total error count.","failureModes":["Missing 'data' field returns validation error or empty result","Invalid or malformed JSON Schema object causes schema parsing error","Deeply nested schemas may produce many error entries","Draft version mismatch between schema and validator may produce unexpected results","Non-object schema values may be rejected"],"whenToPreferThis":"Choose this endpoint when you need programmatic JSON Schema validation with detailed per-field error reporting including JSON paths and schema keywords. Ideal for agents that need to verify API payloads, config files, or data structures against a formal schema before processing or forwarding them. Prefer over manual inspection when the schema is complex or errors need to be surfaced to end users.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:44:30.272Z","isFirstParty":false,"canonicalSlug":"sitecheck-json-schema-validator-17811569"}