Skip to content
Free static example · no wallet required

JSON Schema generator

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.

No accountNo subscriptionExact USDC priceFresh calls only are paid
Full response envelope

What you receive

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
      }
    ]
  }
}
Example request

Input JSON

{
  "content": "[{\"name\":\"Ada\",\"score\":98}]",
  "format": "json",
  "root_mode": "records"
}
Delivery contract

One paid POST

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

Inspect validation rules and output schema

Need current data?

Run this exact service.

The checkout verifies the request, selected network, USDC asset, recipient, and price before opening a wallet.

Continue · $0.025 USDC