# Delx Commerce CSV to JSON Converter

> Delx Commerce CSV to JSON Converter is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-01).

Converts CSV text into structured JSON with rows, columns, and row count, supporting custom delimiters, paid per-call via USDC.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/csv-to-json?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-csv-to-json-converter-2b9e4be8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S_ijo7jFu7Yx1cA6tEk8q

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 delx-commerce-csv-to-json-converter-2b9e4be8 -d '<json body>'
```

Example prompt: Convert this CSV text to JSON for me: 'name,score\nana,7\nbob,9' — use a comma as the delimiter.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call CSV-to-JSON conversion with no signup or API key management, especially in agent workflows using USDC micropayments via the x402 protocol. Ideal for one-off conversions or pipelines where billing per result is preferable to a subscription.

## Known failure modes

- Malformed CSV with inconsistent column counts may produce misaligned rows
- Missing or incorrect delimiter causes all data to appear as a single column
- Empty csv_text input may return empty rows and zero row_count
- Headers not present in CSV result in auto-indexed column names or errors
- Payment failure via x402 returns 402 Payment Required before processing begins

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with a 'result' field containing: 'rows' (array of objects keyed by column names), 'columns' (array of column header strings), and 'row_count' (integer count of data rows). Also includes a 'tool_name' field identifying the operation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv_text": {
   "type": "string"
  },
  "delimiter": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "rows": [
    {
     "name": "ana",
     "score": "7"
    },
    {
     "name": "bob",
     "score": "9"
    }
   ],
   "columns": [
    "name",
    "score"
   ],
   "row_count": 2
  },
  "tool_name": "util_csv_to_json"
 }
}
```

## More

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