# Strale Schema Inferencer

> Strale Schema Inferencer is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054001/call, status unknown (last checked 2026-10-13).

Infers schema from a JSON array or CSV string, returning field types, nullability, uniqueness, completeness, and numeric statistics (min/max/mean).

## Facts

- Endpoint: GET https://api.strale.io/x402/schema-infer?utm_source=zero.xyz
- Price: $0.054001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-b213f41c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eo3PFFk79qXrnSm7ePnKX

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-strale-io-b213f41c
```

Example prompt: Can you infer the schema for this JSON array and tell me the field types, which fields have nulls, which are unique, and the min/max/mean for any numeric columns? Here's the data: [{"id":1,"name":"Alice","score":95.5},{"id":2,"name":null,"score":82.0}]

## When to prefer this

Use this endpoint when you need fast, algorithmic, serverless schema profiling of a JSON array or CSV without spinning up a database or data warehouse. Ideal for data pipeline validation, quick data audits, or pre-processing checks before loading data into a system.

## Known failure modes

- Malformed JSON or invalid CSV returns a parse error
- Empty array or zero-row CSV may return empty schema or error
- Extremely large payloads may hit size or timeout limits
- Mixed-type columns may produce ambiguous type inference
- Missing required 'data' query parameter returns a 400 error

## How this service works

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

## Output

Returns per-field metadata including inferred data type, nullability (whether nulls are present), uniqueness (whether all values are distinct), completeness (percentage of non-null values), and for numeric fields: minimum, maximum, and mean values.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "data"
     ],
     "properties": {
      "data": {
       "description": "JSON array or CSV string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-b213f41c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
