Validate JSON data against a bounded JSON Schema Draft 2020-12 contract for nested obje…
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 trunc…
by apiacre.com · discovered, not yet claimed by its owner · updated 2026-10-08
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
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.
Tags: json-schema · schema-validation · json-validator · structured-output · validation · bazaar · payment-identifier
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-08
{
"check_formats": true,
"instance": {
"name": "Ada",
"score": "98"
},
"max_errors": 25,
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"name": {
"minLength": 1,
"type": "string"
},
"score": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"name",
"score"
],
"type": "object"
}
}{
"data": {
"errorCount": 1,
"errorCountExact": true,
"errors": [
{
"instancePath": "/score",
"keyword": "type",
"kind": "instance",
"message": "'98' is not of type 'integer'",
"schemaPath": "/properties/score/type"
}
],
"errorsReturned": 1,
"errorsTruncated": false,
"instance": {
"sha256": "43d117eb76b608a0d05820c70320889a6577ff85446e00412b6e6487c1559149",
"utf8Bytes": 27
},
"instanceValid": false,
"schema": {
"declaredDialect": "https://json-schema.org/draft/2020-12/schema",
"dialect": "https://json-schema.org/draft/2020-12/schema",
"remoteReferencesAllowed": false,
"sha256": "9565a3dfc9aaadfaf2b3163f433b954d7d91246b6c225c11a8c16fe42ae841e4",
"utf8Bytes": 224
},
"schemaValid": true,
"valid": false,
"validation": {
"draft": "2020-12",
"engine": "python-jsonschema",
"engineVersion": "4.26.0",
"formatChecking": true,
"maxErrors": 25
}
},
"meta": {
"cached": false,
"duration_ms": 42,
"next_actions": [
{
"method": "POST",
"path": "/v1/data/schema",
"reason": "Infer the rejected instance's observed Draft 2020-12 shape for comparison wit...",
"service": "data.schema",
"title": "JSON Schema generator"
}
],
"sources": [],
"warnings": []
},
"request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
"service": "data.schema-validate",
"version": "1"
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/27731.jsonfor the price and payment options. - Pay. Call
GET https://apiacre.com/v1/data/schema-validate. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Solana, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.01 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Solana
- Demand
- 2 calls · 2 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.01 | 0xa0BFa4f07281c9b248DC3AED2217836BcA24869B | 300s |
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.01 | B4CHWQeQn7GDLZD2aW6hpGG2bEseisBFLZYECA3HDLan | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xa0BFa4f07281c9b248DC3AED2217836BcA24869B",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"amountUsd": 0.01,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "B4CHWQeQn7GDLZD2aW6hpGG2bEseisBFLZYECA3HDLan",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "10000",
"amountUsd": 0.01,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"data": {
"properties": {
"errorCount": {
"type": "integer"
},
"errorCountExact": {
"type": "boolean"
},
"errors": {
"items": {
"type": "object"
},
"type": "array"
},
"errorsReturned": {
"type": "integer"
},
"errorsTruncated": {
"type": "boolean"
},
"instance": {
"type": "object"
},
"instanceValid": {
"type": [
"boolean",
"null"
]
},
"schema": {
"type": "object"
},
"schemaValid": {
"type": "boolean"
},
"valid": {
"type": "boolean"
},
"validation": {
"type": "object"
}
},
"type": "object"
},
"meta": {
"properties": {
"cached": {
"type": "boolean"
},
"duration_ms": {
"type": "integer"
},
"next_actions": {
"items": {
"type": "object"
},
"type": "array"
},
"sources": {
"items": {
"type": "string"
},
"type": "array"
},
"warnings": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"duration_ms",
"cached",
"sources",
"warnings",
"next_actions"
],
"type": "object"
},
"request_id": {
"type": "string"
},
"service": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"request_id",
"service",
"version",
"data",
"meta"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"data": {
"errorCount": 0,
"errorCountExact": true,
"errors": [
{}
],
"errorsReturned": 0,
"errorsTruncated": true,
"instance": {},
"instanceValid": true,
"schema": {},
"schemaValid": true,
"valid": true,
"validation": {}
},
"meta": {
"cached": true,
"duration_ms": 0,
"next_actions": [
{}
],
"sources": [
"string"
],
"warnings": [
"string"
]
},
"request_id": "string",
"service": "string",
"version": "string"
},
"type": "string"
}Examples
curl -X POST 'https://apiacre.com/v1/data/schema-validate' -H 'Content-Type: application/json' --data '{"check_formats":true,"instance":{"name":"Ada","score":"98"},"max_errors":25,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"name":{"minLength":1,"type":"string"},"score":{"minimum":0,"type":"integer"}},"required":["name","score"],"type":"object"}}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATUREconst res = await fetch("https://apiacre.com/v1/data/schema-validate", {
"method": "POST",
"headers": {
"content-type": "application/json"
},
"body": "{\"check_formats\":true,\"instance\":{\"name\":\"Ada\",\"score\":\"98\"},\"max_errors\":25,\"schema\":{\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"additionalProperties\":false,\"properties\":{\"name\":{\"minLength\":1,\"type\":\"string\"},\"score\":{\"minimum\":0,\"type\":\"integer\"}},\"required\":[\"name\",\"score\"],\"type\":\"object\"}}"
});
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
import json
res = httpx.request("POST", "https://apiacre.com/v1/data/schema-validate", json=json.loads("{\"check_formats\":true,\"instance\":{\"name\":\"Ada\",\"score\":\"98\"},\"max_errors\":25,\"schema\":{\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"additionalProperties\":false,\"properties\":{\"name\":{\"minLength\":1,\"type\":\"string\"},\"score\":{\"minimum\":0,\"type\":\"integer\"}},\"required\":[\"name\",\"score\"],\"type\":\"object\"}}"))
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- apiacre.com
- Endpoint
- https://apiacre.com/v1/data/schema-validate
- Machine-readable
/resources/27731.json