# Parse CSV into JSON Rows

> Parse CSV into JSON Rows 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).

Accepts a CSV string (with optional custom delimiter) and returns the parsed data as an array of JSON row objects.

## Facts

- Endpoint: POST https://twin.unykorn.org/csv-to-json?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/parse-csv-into-json-rows-fd8316a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B2L_Ch9RobZxTcbiZ6AE4

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 parse-csv-into-json-rows-fd8316a8 -d '<json body>'
```

Example prompt: Parse this CSV into JSON rows for me — the data uses a semicolon as the delimiter: 'name;age;city\nAlice;30;NYC\nBob;25;LA'

## When to prefer this

Choose this endpoint when you need a simple, pay-per-call microservice to parse a CSV string into JSON rows without running your own parser infrastructure. Ideal for agents handling one-off or infrequent CSV-to-JSON conversions, especially when custom delimiters (semicolons, tabs, pipes) are needed. Best suited for smaller payloads under 49KB.

## Known failure modes

- Malformed CSV with inconsistent column counts may produce incomplete or misaligned rows
- CSV string exceeding 49,152 character limit will be rejected
- Invalid or ambiguous delimiter may cause parsing errors
- Payment failure (x402 protocol) will block the call before parsing
- Missing or empty csv parameter returns an error response

## How this service works

Parse CSV into JSON rows — Genesis402 / UnyKorn Operator Network

## Output

Returns a JSON object with ok: true, a type field ('csv-to-json'), an array of parsed JSON row objects (each row as a key-value object), a generated_at ISO8601 timestamp, and a receipt containing the transaction hash, USD amount charged, and a receipt ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "csv": {
     "type": "string",
     "maxLength": 49152
    },
    "delimiter": {
     "type": "string"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "csv-to-json",
  "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/parse-csv-into-json-rows-fd8316a8/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)
