JSON Schema validation
$0.01 USDCValidate a future JSON value against the inferred Draft 2020-12 contract.
Inspect the exact response envelope first. When you need current analysis for your own input, one successful x402 call costs $0.025 USDC on Base or Solana.
Demonstration data only. The paid endpoint returns a fresh result and settlement receipt.
{
"request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
"service": "data.schema",
"version": "1",
"data": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "array",
"x-apiacre-observed": {
"sampleCount": 1,
"presentCount": 1,
"missingCount": 0,
"nullCount": 0,
"types": [
"array"
],
"arrayLength": {
"minimum": 1,
"maximum": 1
}
},
"items": {
"type": "object",
"x-apiacre-observed": {
"sampleCount": 1,
"presentCount": 1,
"missingCount": 0,
"nullCount": 0,
"types": [
"object"
]
},
"properties": {
"name": {
"type": "string",
"x-apiacre-observed": {
"sampleCount": 1,
"presentCount": 1,
"missingCount": 0,
"nullCount": 0,
"types": [
"string"
],
"stringLength": {
"minimum": 3,
"maximum": 3
}
}
},
"score": {
"type": "integer",
"x-apiacre-observed": {
"sampleCount": 1,
"presentCount": 1,
"missingCount": 0,
"nullCount": 0,
"types": [
"integer"
]
}
}
},
"required": [
"name",
"score"
]
}
},
"input": {
"format": "json",
"rootMode": "records",
"records": 1,
"characters": 27,
"utf8Bytes": 27,
"sha256": "c643e5c255c8922bcd1163746ad6233618735d05482f8d2fa68e30021648f076"
},
"inference": {
"version": "apiacre-schema-inference/3",
"dialect": "https://json-schema.org/draft/2020-12/schema",
"csvNumericStringsCoerced": false,
"csvEmptyStringsAsNull": false,
"tabularNumericStringsCoerced": false,
"tabularEmptyStringsAsNull": false,
"nodesProcessed": 4,
"nonStringKeysNormalized": 0,
"dateTimeScalarsNormalized": 0,
"observedBoundsEnforced": false,
"maximumDepth": 20,
"complete": true,
"warnings": []
}
},
"meta": {
"duration_ms": 42,
"cached": false,
"sources": [],
"warnings": [],
"next_actions": [
{
"service": "data.schema-validate",
"title": "JSON Schema validation",
"reason": "Validate a future JSON value against the inferred Draft 2020-12 contract.",
"method": "POST",
"path": "/v1/data/schema-validate",
"price": "$0.01",
"input_template": {
"schema": "$result.data.schema",
"instance": "$futureJsonValue",
"max_errors": 25,
"check_formats": true
},
"use_output": "Require result.data.valid and inspect JSON Pointer errors before accepting the value.",
"handoff_path": "/catalog/data.schema-validate",
"checkout_path": "/try/data.schema-validate",
"sample_path": "/samples/data.schema-validate",
"maximum_atomic_usdc": "10000",
"handoff_payment_required": false,
"executes_automatically": false,
"authorization_required": true
}
]
}
}{
"content": "[{\"name\":\"Ada\",\"score\":98}]",
"format": "json",
"root_mode": "records"
}Create and generate a nested JSON Schema Draft 2020-12 contract by inferring field types and required fields from representative JSON, CSV, TSV, JSON Lines, or YAML records, with equivalent CSV/TSV numeric and null inference, input evidence, and non-enforcing observed bounds.
POST /v1/data/schema
Each option opens a new checkout with its own exact price and requires separate buyer authorization. Nothing runs automatically.
Validate a future JSON value against the inferred Draft 2020-12 contract.
The checkout verifies the request, selected network, USDC asset, recipient, and price before opening a wallet.