# CSV to JSON Converter

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

Converts raw CSV data into structured JSON rows suitable for downstream AI agents, prompts, and ETL pipelines.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/csv-to-json
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-delx-ai-9cbd2436
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HyOIwoeTKlAVlwWx9789k

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 api-delx-ai-9cbd2436 -d '<json body>'
```

Example prompt: I have this raw CSV text with headers and rows — can you convert it into JSON records so I can pass each row into my downstream pipeline?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call conversion of raw CSV text into JSON row arrays for immediate use in AI agent pipelines, prompt templates, or ETL steps — especially when you want a simple REST call rather than running a local parser or integrating a full data processing library.

## Known failure modes

- Malformed or empty CSV input returns an error indicating unparseable content
- CSV with inconsistent column counts per row may produce incomplete or misaligned JSON objects
- Non-UTF-8 encoded CSV content may cause parsing failures
- Missing or ambiguous headers may result in auto-generated or null key names
- Network timeout or service unavailability returns a 5xx error

## How this service works

CSV to JSON conversion API for agents: convert a bounded CSV payload into JSON rows for $0.01 USDC for downstream agents, prompts, and ETL—no account or file storage product.

## Output

An array of JSON objects where each element represents one CSV row, with column headers mapped as keys to their corresponding cell values, ready for downstream agent consumption or ETL processing.

## 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/api-delx-ai-9cbd2436/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
