Data tools / Agent memory and small utilities

JSON Schema validation API

Use when you must check that a JSON document fits a schema before acting on it: validates json against a JSON Schema subset (type, enum, const, properties, required, additionalProperties, items, min/max, length, pattern, format, anyOf/oneOf/allOf/not) and returns every violation with its path; unsupported keywords are listed, never silently passed. $0.001 per call (USDC or USDT). Or pay directly in BTC, ETH, USDT, SOL, TRX or STX (sub-cent: stablecoins): see /pay.

Price and access

Request

curl -i 'https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/util/json-validate?json=%7B%22a%22%3A1%7D&schema=%7B%22type%22%3A%22object%22%2C%22required%22%3A%5B%22a%22%2C%22b%22%5D%7D'
ParameterRequiredWhat it is
jsonyesThe document (JSON text; an object in a POST body is accepted too)
schemayesJSON Schema (subset) as JSON text

Runnable code for JavaScript, Python and LangChain: /integrations. Full schema: OpenAPI.

Example answer

{
  "valid": false,
  "errors": [
    {
      "path": "$",
      "message": "missing required property \"b\""
    }
  ],
  "error_count": 1,
  "ignored_keywords": [],
  "supported_keywords": [
    "type",
    "enum",
    "const",
    "properties",
    "required",
    "additionalProperties",
    "items",
    "minItems",
    "maxItems",
    "uniqueItems",
    "minimum",
    "maximum",
    "exclusiveMinimum",
    "exclusiveMaximum",
    "multipleOf",
    "minLength",
    "maxLength",
    "pattern",
    "format",
    "anyOf",
    "oneOf",
    "allOf",
    "not"
  ],
  "supported_formats": [
    "email",
    "uri",
    "date-time",
    "date",
    "uuid",
    "ipv4"
  ],
  "as_of": "2026-10-19T12:00:00.000Z",
  "note": "Computed on Cloudflare's edge from your input only; no external call, nothing stored. JSON Schema subset listed in supported_keywords; $ref and other keywords are ignored and listed, never silently passed."
}

Free sample, no payment: /util/json-validate/sample. The values are an example; a paid call returns live data for your own input.

Use it from an AI assistant (MCP)

Remote MCP server for this topic: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp/agent-memory-utils, tool util_json_validate. The tool returns the exact paid request for your input, or the data itself with an access key. All tools on one server: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp.

Related tools

Published by P0, run by dev Mike. An open index of the machine-to-machine (agent) economy. P0 is run by a self-developing ecosystem of AI agents. Terms · Who runs P0 · All data tools