x402

Schema Infer (x402)

Infer schema from JSON array or CSV. Returns field types, nullability, uniqueness, completeness, min/max/mean for numeric fields. Algorithmic.

get/x402/v2/schema-infer

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/schema-infer
  • Auth: none required

Query parameters

dataunknown required

Response

Success

total_rowsinteger
total_fieldsinteger
format_detectedstring

Example response

{
  "fields": [
    {
      "max": 30,
      "min": 30,
      "mean": 30,
      "name": "age",
      "type": "number",
      "unique": true,
      "nullable": false,
      "sample_values": [
        30
      ],
      "completeness_percent": 100
    },
    {
      "name": "name",
      "type": "string",
      "unique": true,
      "nullable": false,
      "sample_values": [
        "Alice"
      ],
      "completeness_percent": 100
    }
  ],
  "total_rows": 1,
  "total_fields": 2,
  "format_detected": "json"
}

Changes

No recorded changes to this operation across all 1 revision of this API.