# CSV to JSON Converter with Auto-Delimiter and Type Inference

> CSV to JSON Converter with Auto-Delimiter and Type Inference is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0216/call, status unknown (last checked 2026-10-12).

Converts a CSV string into a JSON array with automatic delimiter detection and data type inference

## Facts

- Endpoint: GET https://api.strale.io/x402/csv-to-json?utm_source=zero.xyz
- Price: $0.0216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-2cdf33f9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sPYItLsLE4Ci2TOAqFpLt

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-2cdf33f9
```

Example prompt: Convert this CSV string to a JSON array — it has a header row and I'm not sure if the delimiter is a comma or semicolon: 'name;age;city\nAlice;30;New York\nBob;25;London'

## When to prefer this

Choose this endpoint when you have a raw CSV string (not a file URL) and need a structured JSON array back without having to specify the delimiter yourself — especially useful for CSVs of unknown origin where the separator (comma, semicolon, tab, pipe) isn't guaranteed. It also saves a step by inferring numeric and boolean types automatically rather than returning all values as strings.

## Known failure modes

- Malformed or empty csv_string returns an error
- Ambiguous delimiter that cannot be auto-detected may cause incorrect parsing
- CSV with inconsistent column counts per row may produce unexpected output
- Missing required csv_string query parameter returns a 400-level error
- Very large CSV strings may hit size or timeout limits

## How this service works

Convert CSV string to JSON array with auto-detected delimiter and type inference. Algorithmic.

## Output

Returns a JSON array of objects where each row becomes a JSON object with keys from the header row (if present), and values automatically cast to their inferred types (numbers, booleans, strings, etc.)

## Example request

```json
{
 "csv_string": "name,age,city\nAlice,30,New York\nBob,25,London\nCharlie,35,Paris",
 "has_header": true
}
```

## 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": [
      "csv_string"
     ],
     "properties": {
      "delimiter": {
       "type": "string"
      },
      "csv_string": {
       "type": "string"
      },
      "has_header": {
       "type": "boolean"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-2cdf33f9/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)
