# CSV to JSON / JSON to CSV Converter

> CSV to JSON / JSON to CSV Converter is a paid API for AI agents from skinwinking.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-20).

Converts CSV text to a structured JSON array of objects (or JSON array back to CSV), with optional custom delimiter support.

## Facts

- Endpoint: POST https://skinwinking.com/api/v1/util/csv-to-json?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-to-json-json-to-csv-converter-d2c9bb63
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GRTWYHYMn8WP7f1upTIhA

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

Example prompt: Convert this CSV text into JSON for me — it uses a semicolon as the delimiter: 'name;age;city\nAna;30;NYC\nBob;25;LA'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call CSV↔JSON conversion without standing up your own parser — especially useful in agent pipelines where tabular data from external sources (spreadsheets, APIs, logs) needs to be normalized into JSON for downstream processing, or when JSON records need to be serialized back to CSV. Supports auto-delimiter detection making it robust for varied file formats.

## Known failure modes

- Malformed or inconsistent CSV may produce unexpected column mappings or empty rows
- Incorrect mode value (not 'to_json' or 'to_csv') may cause errors or unexpected behavior
- When mode=to_csv, non-array JSON input will likely cause a parsing error
- Auto-delimiter detection may fail on ambiguous formats with multiple delimiter candidates
- Payment failure over x402 results in 402 response before processing begins

## How this service works

50 pay-per-call tools for agents over x402 (USDC on Base, Polygon, Solana): crypto market data, token audits, indicators, swap routing, web extraction, DNS/WHOIS/email checks, FX, weather and AI text/image tools.

## Output

Returns a JSON object containing a 'rows' array (each element is an object keyed by column name) and a 'columns' array listing the detected field names. When mode=to_csv, returns the CSV-formatted text instead.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "type": "string",
   "default": "to_json",
   "description": "to_json or to_csv"
  },
  "text": {
   "type": "string",
   "description": "CSV text, or a JSON array of objects when mode=to_csv"
  },
  "delimiter": {
   "type": "string",
   "description": "Optional delimiter, auto-detected by default"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rows": [
   {
    "age": "30",
    "name": "Ana"
   }
  ],
  "columns": [
   "name",
   "age"
  ]
 }
}
```

## More

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