# CSV to JSON Converter

> CSV to JSON Converter is a paid API for AI agents from centralcity.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-19).

Parses RFC 4180-compliant CSV text into an array of JSON objects or arrays, supporting multiple delimiters and optional header row handling.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_w6o6q4wfk6us2nh7?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-to-json-converter-cc981486
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PC2C7pAUqAmbi2qdRdl94

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-converter-cc981486 -d '<json body>'
```

Example prompt: Can you parse this CSV text into JSON rows for me? The first row is a header, and the fields are comma-separated: 'name,age,city\nAlice,30,NYC\nBob,25,LA'

## When to prefer this

Use this endpoint when you need a quick, paid, hosted CSV-to-JSON conversion without spinning up your own parser — especially when you have RFC 4180-compliant CSV with quoted fields and need reliable handling of commas, semicolons, tabs, or pipe delimiters up to 64 KiB and 10,000 rows.

## Known failure modes

- Input exceeds 64 KiB — the endpoint will reject or truncate the input
- Malformed CSV that does not conform to RFC 4180 quoting rules may cause parse errors
- More than 10,000 rows in the input — only the first 10,000 will be returned or the request may be rejected
- Wrong delimiter specified — rows will not parse into expected columns
- Mismatched header flag — data treated as header row or header row treated as data

## How this service works

Reads CSV (quoted fields as in RFC 4180) into JSON rows, at most 10000 rows.

## Output

An array of JSON rows — each row is either a JSON object keyed by column headers (when header:true) or a JSON array of string values (when header:false). Up to 10,000 rows are returned from up to 64 KiB of CSV input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "The CSV text, at most 64 KiB."
  },
  "header": {
   "type": "boolean",
   "description": "Whether the first row names the columns (default true): rows are then objects, else arrays."
  },
  "delimiter": {
   "enum": [
    ",",
    ";",
    "\t",
    "|"
   ],
   "type": "string",
   "description": "The field delimiter: a comma (default), a semicolon, a tab (\\t) or a pipe."
  }
 }
}
```

## More

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