# JSON to CSV Converter

> JSON to CSV Converter 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 an array of JSON objects into a CSV string, with configurable headers, column ordering, and delimiters, settled via micropayment over x402.

## Facts

- Endpoint: POST https://claudemadeagent-production.up.railway.app/tools/json2csv
- 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/json-to-csv-converter-f12b9e40
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7JQAvn4B_0QN0gGVL8KzD

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

Example prompt: Convert these JSON records into a CSV — use a semicolon as the delimiter, include a header row, and order the columns as 'id', 'name', 'email': [{"id":1,"name":"Alice","email":"alice@example.com"},{"id":2,"name":"Bob","email":"bob@example.com"}].

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call JSON-to-CSV conversion without standing up your own transformation logic — especially useful in agent pipelines where data from an API or tool needs to be immediately exported to a spreadsheet or legacy system. Prefer it over generic code execution when you want a deterministic, schema-validated conversion with configurable column ordering and delimiters, settled cheaply in USDC at $0.005 per call.

## Known failure modes

- Missing required 'rows' field returns a validation error
- Non-array value for 'rows' causes a schema rejection
- Delimiter longer than one character is rejected
- Payment not received results in a 402 response with machine-readable payment instructions before the result is returned
- Inconsistent keys across JSON objects may produce sparse/misaligned columns if no explicit column list is provided

## 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

Returns a CSV-formatted string derived from the input JSON object array, with an optional header row listing column names, rows corresponding to each JSON object, values separated by the specified delimiter (default comma), and columns in the specified or inferred order.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "rows"
 ],
 "properties": {
  "rows": {
   "type": "array",
   "description": "Array of JSON objects, one per CSV row."
  },
  "header": {
   "type": "boolean",
   "description": "Emit a header row. Default true."
  },
  "columns": {
   "type": "array",
   "description": "Explicit column order/subset. Default: union of keys, first-seen order."
  },
  "delimiter": {
   "type": "string",
   "description": "Single-character delimiter. Default \",\"."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-to-csv-converter-f12b9e40/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)
