# agent402.tools CSV to JSON Converter

> agent402.tools CSV to JSON Converter is a paid API for AI agents from agent402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Parses CSV text (with quoted field support) into a JSON array of objects or arrays, using the first row as headers by default

## Facts

- Endpoint: POST https://agent402.tools/api/csv-to-json
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-csv-to-json-converter-eda1a732
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7FJeJ6xP_HZdJsfNWPiVT

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 agent402-tools-csv-to-json-converter-eda1a732 -d '<json body>'
```

Example prompt: Can you convert this CSV data into JSON objects using the first row as headers and a semicolon as the delimiter? The CSV is: 'name;age;city\nAlice;30;New York\nBob;25;London'

## When to prefer this

Use this endpoint when you need reliable CSV-to-JSON parsing with quoted field support, custom delimiters (e.g. semicolon, tab), and optional header row control. Ideal for agents processing tabular data exports before further analysis or storage.

## Known failure modes

- CSV exceeds 100KB limit — request rejected
- Malformed CSV with unmatched quotes — parse error returned
- Invalid delimiter value — error or unexpected parsing behavior
- Empty CSV input — empty array returned
- Network or payment failure — 402 or 5xx error

## How this service works

Parse CSV (quoted fields supported) into a JSON array of objects, using the first row as headers (header=false for arrays).

## Output

A JSON array of objects where each row becomes an object with keys from the header row, or a JSON array of arrays if header=false. Quoted fields and custom delimiters are handled correctly.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "description": "CSV text (max 100KB)"
  },
  "header": {
   "type": "boolean",
   "description": "First row is headers (default true)"
  },
  "delimiter": {
   "type": "string",
   "description": "Default ,"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rows": [
   {
    "age": "36",
    "name": "Ada"
   }
  ],
  "count": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-csv-to-json-converter-eda1a732/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
