# Strale CSV to JSON Converter

> Strale CSV to JSON Converter is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0216/call, status unknown (last checked 2026-09-15).

Converts a CSV string to a structured JSON array, with optional delimiter and header configuration

## Facts

- Endpoint: GET https://api.strale.io/x402/v2/csv-to-json
- Price: $0.0216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-csv-to-json-converter-5f9142ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L23TMAr_5hBXfHp2630hJ

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 strale-csv-to-json-converter-5f9142ca
```

Example prompt: Can you convert this CSV string to JSON for me — it uses a semicolon as the delimiter and has a header row: 'name;age;city\nAlice;30;London\nBob;25;Paris'

## When to prefer this

Choose this endpoint when you need a simple, auditable, pay-per-call CSV-to-JSON conversion without spinning up your own parsing library. Ideal for agent workflows where you receive raw CSV text (from exports, APIs, or user uploads) and need structured JSON for downstream processing. The cryptographic audit record makes it suitable for compliance-sensitive pipelines. Prefer this over local parsing when operating in a serverless or constrained environment.

## Known failure modes

- Missing csv_string parameter — returns validation error
- Malformed CSV with inconsistent column counts — may produce partial or error response
- Delimiter mismatch with actual data — results in single-column or incorrectly parsed output
- CSV string too large — may hit payload size limits
- Non-UTF8 encoded content in CSV — may cause parsing failures

## How this service works

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

## Output

A JSON array where each element is an object representing one CSV row, with keys derived from the header row (if present) or positional indices. Includes an audit record with cryptographic chain hash for traceability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "csv_string"
 ],
 "properties": {
  "delimiter": {
   "type": "string"
  },
  "csv_string": {
   "type": "string"
  },
  "has_header": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "data": {
  "type": "array"
 },
 "columns": {
  "type": "array"
 },
 "row_count": {
  "type": "integer"
 },
 "detected_delimiter": {
  "type": "string"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/strale-csv-to-json-converter-5f9142ca/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)
