# fittings CSV to JSON Converter

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

Parses RFC 4180 CSV text into an array of JSON objects keyed by the header row, correctly handling quoted fields and embedded newlines.

## Facts

- Endpoint: POST https://fittings.sh/v1/fmt/csv-to-json
- Price: $0.0035/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-csv-to-json-converter-7bb51a51
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QswHgGzHsEusdioj78K-E

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 fittings-csv-to-json-converter-7bb51a51 -d '<json body>'
```

Example prompt: Can you convert this CSV text into JSON objects keyed by the header row? It uses semicolons as delimiters and has some fields with embedded newlines and quotes.

## When to prefer this

Choose this endpoint when you need reliable RFC 4180-compliant CSV parsing that correctly handles quoted fields containing commas and embedded newlines — edge cases that naive string-split approaches miss. It supports large files (up to 1M characters) and custom delimiters, making it suitable for diverse real-world exports. Prefer it over general-purpose code execution or LLM-based parsing when you need deterministic, structured JSON output at scale.

## Known failure modes

- Malformed CSV that violates RFC 4180 quoting rules may produce unexpected output or an error
- Exceeding the size limits (1M chars, 50K rows, 1024 cols, 500K cells) will result in a rejection error
- Providing a multi-character delimiter will fail since only single characters are accepted
- Empty CSV or CSV with no header row may produce an empty array or an error
- Non-UTF-8 encoded CSV may cause parsing failures

## How this service works

Parse RFC 4180 CSV into JSON objects keyed by header row, handling quotes and embedded newlines.

## Output

An array of JSON objects where each object represents one data row from the CSV, with keys taken from the header row and values as strings. Handles up to 1,000,000 characters, 50,000 rows, 1,024 columns, and 500,000 cells. Correctly resolves RFC 4180 quoted fields and embedded newlines.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "description": "Up to 1000000 characters, 50000 rows, 1024 columns and 500000 cells"
  },
  "delimiter": {
   "type": "string",
   "description": "Single character, defaults to comma"
  }
 }
}
```

## More

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