# JSON to CSV Converter

> JSON to CSV Converter is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Converts structured JSON row data into CSV format for exports, spreadsheets, and data handoff.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/json-to-csv
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-delx-ai-a089926f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LbBj2fR1QZGaaxG_XM6DG

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 api-delx-ai-a089926f -d '<json body>'
```

Example prompt: Take these JSON rows and convert them into a CSV file I can open in Excel: [{"name":"Alice","age":30,"city":"Boston"},{"name":"Bob","age":25,"city":"Denver"}].

## When to prefer this

Use this endpoint when you have structured JSON data (array of objects) and need a CSV representation for spreadsheet use, data export pipelines, or downstream handoff to non-technical stakeholders. Ideal for AI agents completing ETL steps, generating downloadable reports, or preparing data for tools like Excel or Google Sheets.

## Known failure modes

- Malformed or non-array JSON input returns a validation error
- Empty JSON array may return empty CSV with headers only
- Deeply nested JSON objects may not flatten correctly
- Missing or inconsistent keys across rows may result in misaligned columns
- Request timeout on very large payloads

## How this service works

Convert structured JSON rows into CSV for exports, spreadsheets, and handoff.

## Output

Returns CSV-formatted text derived from the input JSON rows, with headers inferred from the JSON object keys and each row serialized as a comma-separated line, ready for file download, spreadsheet import, or further processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "delimiter": {
   "type": "string"
  },
  "json_text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "csv": "name,score\\rana,7\\r\\n",
   "columns": [
    "name",
    "score"
   ],
   "row_count": 1
  },
  "tool_name": "util_json_to_csv"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-delx-ai-a089926f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
