# Agent Data Toolkit – JSON to CSV Converter

> Agent Data Toolkit – JSON to CSV Converter is a paid API for AI agents from agent-data-toolkit.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Converts a list of JSON records into a CSV file with automatic header detection from field names.

## Facts

- Endpoint: POST https://agent-data-toolkit.onrender.com/csv?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-toolkit-json-to-csv-converter-7a528754
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8IkH8-WJwV_-mXAt_pmiQ

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 agent-data-toolkit-json-to-csv-converter-7a528754 -d '<json body>'
```

Example prompt: Can you convert this list of JSON records into a CSV file? Here's the data: [{"name":"Alice","age":30,"city":"NYC"},{"name":"Bob","age":25,"city":"LA"}] — just detect the headers automatically and give me the CSV output.

## When to prefer this

Use this endpoint when you have a flat or near-flat array of JSON objects and need quick CSV output with automatic header inference, without setting up a local conversion pipeline. Ideal for agents exporting API data to spreadsheets or data pipelines. If records have complex nested structures, consider pre-flattening first.

## Known failure modes

- Input is not a valid JSON array — returns error indicating malformed input
- Records have deeply nested objects that cannot be flattened to CSV columns
- Empty array input — returns only headers or empty response
- Mixed schema records with inconsistent keys — some cells may be blank or missing
- Payment not processed — 402 response requiring x402 payment

## How this service works

Convert a list of JSON records into CSV with automatic header detection.

## Output

Returns a CSV-formatted text string with automatically detected column headers derived from the JSON field names, followed by one row per input record with values populated accordingly.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "method"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "records": {
       "type": "array",
       "description": "array of objects (required, min 1)"
      },
      "delimiter": {
       "type": "string",
       "description": "string, defaults to ','"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "required": [
      "ok",
      "csv"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "csv": {
       "type": "string"
      },
      "rows": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-toolkit-json-to-csv-converter-7a528754/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-toolkit.onrender.com](https://www.zero.xyz/host/agent-data-toolkit.onrender.com/llms.txt)
