# CSV to JSON Converter (paid-agent)

> CSV to JSON Converter (paid-agent) is a paid API for AI agents from claudemadeagent-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-19).

Converts raw CSV text into JSON, with configurable delimiter and header options, settled via per-call USDC micropayment over x402.

## Facts

- Endpoint: POST https://claudemadeagent-production.up.railway.app/tools/csv2json
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-to-json-converter-paid-agent-b5ef4a02
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IYKMXCa5d-5T6IW5KOGOt

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-paid-agent-b5ef4a02 -d '<json body>'
```

Example prompt: Convert this CSV text to JSON for me — it uses a semicolon as the delimiter and the first row is column headers: 'name;age;city\nAlice;30;New York\nBob;25;London'

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call CSV-to-JSON conversion without provisioning a dedicated parsing library or service. It's ideal for agents handling ad-hoc or infrequent CSV data that arrives as raw text strings (up to 2MB), especially when you need configurable delimiter or header treatment. Prefer alternatives if you need to process files larger than 2MB, require streaming, or need advanced CSV features like quoted multi-line fields with complex escaping.

## Known failure modes

- CSV exceeds 2MB limit — request rejected
- Malformed CSV with inconsistent column counts — parsing error or partial result
- Delimiter specified is more than one character — validation error
- hasHeader set to true but CSV is empty — empty result or error
- Network or payment failure during x402 handshake — 402 response requiring retry after payment

## How this service works

Pay-per-call tools settled in USDC over the x402 protocol. Every tool answers 402 with machine-readable payment instructions; pay and retry to get the result.

## Output

A JSON object containing the parsed representation of the input CSV data, with rows mapped to objects keyed by column header names (or positional indices if no header), suitable for downstream programmatic consumption.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "csv"
 ],
 "properties": {
  "csv": {
   "type": "string",
   "description": "Raw CSV text to parse (max 2MB)."
  },
  "delimiter": {
   "type": "string",
   "description": "Single-character field delimiter. Default \",\"."
  },
  "hasHeader": {
   "type": "boolean",
   "description": "Treat row 1 as column names. Default true."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-to-json-converter-paid-agent-b5ef4a02/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from claudemadeagent-production.up.railway.app](https://www.zero.xyz/host/claudemadeagent-production.up.railway.app/llms.txt)
