# CSV to JSON Parser

> CSV to JSON Parser is a paid API for AI agents from csv-to-json.api.klymax402.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Parses CSV text into a structured JSON array, with support for custom delimiters and header detection

## Facts

- Endpoint: GET https://csv-to-json.api.klymax402.com/api/parse
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-to-json-parser-7dfd9481
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3SzzYy_j62PCNO_rFqkbp

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 csv-to-json-parser-7dfd9481
```

Example prompt: Can you parse this CSV text into a JSON array for me? The data uses semicolons as the delimiter and the first row contains headers: 'name;age;city\nAlice;30;New York\nBob;25;London'

## When to prefer this

Use this endpoint when you need a quick, stateless HTTP call to convert raw CSV text into JSON without setting up a local CSV parser library. Ideal for lightweight pipelines, serverless functions, or agents that receive CSV payloads and need structured JSON for downstream processing. Best when the CSV fits within a single API request payload.

## Known failure modes

- Malformed CSV input with mismatched quotes or inconsistent columns may return a parse error
- Specifying an unsupported delimiter value may result in incorrect parsing or an error response
- Empty CSV string input may return an empty array or an error
- If hasHeaders is true but the CSV has only one row, the result may be an empty array with no data records

## How this service works

Parse CSV text to JSON array

## Output

Returns a JSON array of objects where each element represents a row from the CSV. If headers are present, object keys correspond to column header names; otherwise keys are positional (e.g., field0, field1). Each record maps column names or positions to their string values.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "description": "CSV content to parse"
  },
  "delimiter": {
   "type": "string",
   "description": "Delimiter: comma, semicolon, tab, pipe (default: auto-detect)"
  },
  "hasHeaders": {
   "type": "boolean",
   "description": "First row is headers (default: true)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-to-json-parser-7dfd9481/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from csv-to-json.api.klymax402.com](https://www.zero.xyz/host/csv-to-json.api.klymax402.com/llms.txt)
