data · documents · data · schema · json-schema · inference

Schema inference

Infer a JSON Schema from CSV, JSON, or YAML records, including nullable fields and observed primitive types.

$0.025 USDCBasex402 v2POST

Endpoint

https://apiacre.com/v1/data/schema

Send the JSON body below. An unpaid request returns HTTP 402 with a PAYMENT-REQUIRED header; an x402-compatible buyer signs the requirement and retries with PAYMENT-SIGNATURE.

Input example

{
  "content": "[{\"name\":\"Ada\",\"score\":98}]",
  "format": "json"
}

Response shape

{
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "data.schema",
  "version": "1",
  "data": {
    "schema": {}
  },
  "meta": {
    "duration_ms": 42,
    "cached": false,
    "sources": [],
    "warnings": []
  }
}

Try the payment challenge

curl -i -X POST 'https://apiacre.com/v1/data/schema' \
  -H 'content-type: application/json' \
  --data '{"content":"[{\"name\":\"Ada\",\"score\":98}]","format":"json"}'