{"uid":"cap_GilN4AoyrM9bHwJnF5--R","slug":"json-schema-validate-0c47077e","name":"JSON Schema Validate","description":"817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.","url":"https://x402.agentutility.ai/json-schema-validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["schema","data"],"properties":{"data":{"description":"The JSON data to validate. Any value. Max 500,000 chars when stringified."},"draft":{"type":"string","description":"Schema draft: '2020-12' (default) or 'draft-07'."},"schema":{"type":"object","description":"The JSON Schema document. Max 200,000 chars when stringified."},"formats":{"type":"boolean","description":"Deprecated no-op; format keywords (email, date, uri, uuid, etc.) are always validated. Accepted for backward compatibility."},"valid_only":{"type":"boolean","description":"If true, skips per-error detail and returns only { valid, error_count }. Default false."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"draft":{"type":"string"},"valid":{"type":"boolean"},"errors":{"type":"array"},"truncated":{"type":"boolean"},"error_count":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"draft":"2020-12","valid":true,"errors":[],"truncated":false,"error_count":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Sun1Mi3Mr_HglUXEiKcct","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates arbitrary JSON data against a provided JSON Schema document, returning validation errors and counts","exampleAgentPrompt":"Can you validate this JSON object against my schema and tell me exactly which fields fail validation? Use draft 2020-12. Here's the schema: {\"type\":\"object\",\"required\":[\"name\",\"age\"],\"properties\":{\"name\":{\"type\":\"string\"},\"age\":{\"type\":\"integer\",\"minimum\":0}}} and the data: {\"name\":\"Alice\",\"age\":-5}","exampleUseCases":[{"title":"API request body validation","prompt":"I'm building an API and want to make sure incoming request bodies match my schema before processing — can you validate this payload against my OpenAPI schema and list every field that fails?"},{"title":"Config file schema compliance check","prompt":"Before deploying, check whether this config JSON file is valid according to my JSON Schema definition — I just need to know if it passes or fails and how many errors there are, no detailed breakdown needed."},{"title":"Catching data pipeline schema errors","prompt":"I have some transformed JSON records from my data pipeline and I need to verify they all conform to our output schema. Can you validate this record against the schema and show me the specific validation errors so I can fix the transformer?"}],"resultDescription":"Returns a JSON object with: 'valid' (boolean indicating pass/fail), 'errors' (array of detailed per-field validation error objects), 'error_count' (integer count of errors), 'draft' (which schema draft was used, e.g. '2020-12'), and 'truncated' (boolean indicating if the error list was cut off due to size). If valid_only was set to true, only 'valid' and 'error_count' are returned.","failureModes":["Schema document exceeds 200,000 character limit — returns an error indicating schema too large","JSON data payload exceeds 500,000 character limit when stringified — returns size limit error","Malformed JSON schema that cannot be parsed — returns a schema parse error","Invalid draft version specified (not '2020-12' or 'draft-07') — returns an enum validation error","Network or payment failure via x402 — HTTP 402 response before execution"],"whenToPreferThis":"Use this endpoint when you need programmatic JSON Schema validation with detailed error reporting, especially inside automated pipelines or agent workflows where you cannot rely on a local validator. It supports both JSON Schema draft 2020-12 and draft-07, validates format keywords (email, uri, date, uuid) always, and returns structured per-error detail suitable for downstream processing. Prefer this over local validation when running in environments without native schema validation libraries, or when you need a consistent cloud-hosted validation step in a pay-per-call agent workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T12:40:24.881Z","isFirstParty":false,"canonicalSlug":"json-schema-validate-0c47077e"}