# Delx Commerce JSON to CSV Converter

> Delx Commerce JSON to CSV 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 a JSON text payload into CSV format, returning the CSV string, column names, and row count — paid per call with USDC on Base or Solana via x402.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-to-csv?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-json-to-csv-converter-972dee57
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zNJRNgNZGO3-cMPtOj93a

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

Example prompt: Convert this JSON array to CSV using a semicolon as the delimiter: [{"name":"ana","score":7},{"name":"bob","score":9}]

## When to prefer this

Choose this endpoint when an AI agent needs a quick, stateless, pay-per-call JSON-to-CSV conversion without any signup, API key management, or subscription. It is ideal for agent pipelines that occasionally need to reformat JSON data into tabular CSV for downstream tools (spreadsheets, databases, reporting systems) and want transparent per-call pricing settled in USDC on Base or Solana.

## Known failure modes

- Malformed or non-array JSON input may result in a parsing error or empty output
- Missing json_text field returns a validation error
- Payment not settled via x402 results in a 402 Payment Required response
- Very deeply nested JSON objects may not flatten cleanly into tabular CSV rows
- Custom delimiter characters that conflict with data values may produce malformed CSV

## 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 containing: a 'csv' string with the full CSV content (rows separated by CRLF), a 'columns' array listing the column names derived from the JSON keys, and a 'row_count' integer indicating how many data rows were produced.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "csv": "name,score\\rana,7\\r\\n",
   "columns": [
    "name",
    "score"
   ],
   "row_count": 1
  },
  "tool_name": "util_json_to_csv"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-json-to-csv-converter-972dee57/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)
