# centralcity.ai JSON-to-CSV Converter

> centralcity.ai JSON-to-CSV 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).

Converts a JSON array of flat objects into CSV format with an auto-generated header row containing every key.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_ii5tqhzpcepsikfq?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/centralcity-ai-json-to-csv-converter-b7e473cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9MT-0hbx6iJsDH4C-hFql

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

Example prompt: Can you convert this JSON array into a CSV file? Here's the data: [{"name":"Alice","age":30,"city":"Boston"},{"name":"Bob","age":25,"city":"Denver"}]

## When to prefer this

Choose this endpoint when you have a JSON array of flat objects and need a quick, deterministic CSV conversion without setting up a local parser or library. It is ideal for lightweight data-pipeline steps, exporting API responses to spreadsheets, or preparing tabular data for downstream tools that require CSV input. Best suited for flat (non-nested) data under 64 KiB.

## Known failure modes

- Input is not a valid JSON array — returns an error indicating malformed JSON
- Input contains nested objects or arrays as values (non-flat structure) — may produce unreadable or incorrect CSV cells
- Input exceeds the 64 KiB size limit — returns an error or truncation
- Empty JSON array input — returns only a header row or empty output
- Input is a JSON object rather than a JSON array — returns an error

## How this service works

Writes a JSON array of flat objects as CSV, with a header of every key.

## Output

Returns a CSV-formatted text string where the first row is a header containing every key found across all objects, and subsequent rows contain the corresponding values for each object in the input array.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "A JSON array of objects whose values are text, numbers, true, false or null, at most 64 KiB."
  }
 }
}
```

## More

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