# JSON Rows to CSV Converter

> JSON Rows to CSV Converter is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Converts an array of JSON row objects into a formatted CSV string, using a specified column list.

## Facts

- Endpoint: POST https://twin.unykorn.org/json-to-csv?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-rows-to-csv-converter-6f49267f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vbzhSYugySjbiqZppzIL3

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

Example prompt: Can you convert these JSON rows into a CSV? Here are the rows: [{"name":"Alice","age":30},{"name":"Bob","age":25}] and I want the columns in this order: name, age.

## 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 — particularly useful in agentic workflows where you want structured tabular output from JSON data without managing server infrastructure. It is ideal when you already have JSON row arrays and a known column order and need clean CSV output fast.

## Known failure modes

- Missing or malformed 'rows' parameter returns an error response
- Column list mismatch with row keys may produce empty or incomplete columns
- Payment failure or insufficient funds results in HTTP 402 and no conversion
- Oversized row arrays may time out or be rejected
- Non-array rows input causes a schema validation error

## How this service works

Render JSON rows as CSV — Genesis402 / UnyKorn Operator Network

## Output

Returns a JSON envelope with ok: true, the type identifier 'json-to-csv', the generated CSV content (implied by the type), a payment receipt containing the transaction hash, USD amount, and receipt ID, plus a generated_at ISO8601 timestamp confirming when the conversion was produced.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "rows": {},
    "columns": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "json-to-csv",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.002,
   "receipt_id": "g402-<16hex>"
  },
  "generated_at": "<iso8601>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-rows-to-csv-converter-6f49267f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
