# x402-convert CSV↔JSON

> x402-convert CSV↔JSON is a paid API for AI agents from x402-convert.arikanuk.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Converts CSV text to JSON or JSON arrays to CSV, billed per-call at $0.01 USDC via x402 on Base.

## Facts

- Endpoint: POST https://x402-convert.arikanuk.workers.dev/csv-json?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-convert-csv-json-820964a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZDPF2_Hig5n74GYunw85w

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 x402-convert-csv-json-820964a1 -d '<json body>'
```

Example prompt: Convert this CSV into a JSON array — it has a header row with columns name, age, city followed by a few rows of data.

## When to prefer this

Choose this endpoint when you need deterministic, stateless CSV↔JSON conversion billed per-call with no API key setup — ideal for AI agent workflows that handle tabular data and can pay micro-amounts in USDC on Base via x402.

## Known failure modes

- Malformed CSV without a header row may produce unexpected keys or an error
- JSON input that is not an array of flat objects may fail or produce incomplete CSV
- Missing or empty 'csv'/'json' field in the request body returns an error
- Payment failure or insufficient USDC balance blocks the request with a 402 response
- Very large payloads may hit Cloudflare Workers size limits

## How this service works

Deterministic data-conversion API for AI agents. Pay-per-call in USDC on Base via x402 v2.

## Output

A JSON response containing either a 'json' key with an array of objects (one per CSV row, keyed by header names) when converting CSV→JSON, or a 'csv' key with a CSV string when converting JSON→CSV.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "description": "CSV text with a header row (CSV to JSON)"
  },
  "json": {
   "type": "array",
   "items": {
    "type": "object"
   },
   "description": "Array of objects (JSON to CSV)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "json": [
   {
    "a": "1",
    "b": "2"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-convert-csv-json-820964a1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-convert.arikanuk.workers.dev](https://www.zero.xyz/host/x402-convert.arikanuk.workers.dev/llms.txt)
