# AgentShelf CSV to JSON Converter

> AgentShelf CSV to JSON Converter is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Converts a CSV string into a JSON array of objects, with optional delimiter configuration, at a fixed cost of $0.002 USDC per call.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/csv-to-json?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-csv-to-json-converter-a9139872
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bCsJLUXF0pyUPpK46WqNr

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

Example prompt: Convert this CSV text into a JSON array of objects — the columns are separated by commas: 'name,age,city\nAlice,30,New York\nBob,25,London'

## When to prefer this

Prefer this endpoint when an agent needs a reliable, low-latency, server-side CSV-to-JSON conversion without executing local code. Especially useful when the CSV delimiter is non-standard (e.g. semicolon or tab). Use the free sandbox endpoint POST /v1/sandbox/csv-to-json first if available; fall back to this paid endpoint when the sandbox is unavailable or rate-limited.

## Known failure modes

- Empty or missing 'csv' field returns a validation error
- CSV string exceeds 100,000 character limit causing rejection
- Malformed CSV with inconsistent column counts may produce unexpected output
- Invalid or multi-character delimiter value causes schema validation failure
- Payment of exactly $0.002 USDC not provided triggers x402 payment required response

## How this service works

Call when an agent needs a CSV table converted to a JSON array of objects. No network. Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/csv-to-json first.

## Output

A JSON array of objects where each element corresponds to a CSV row, with keys derived from the header row and values from each subsequent row. The response is structured data suitable for direct programmatic use.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "examples": [
    "name,role\nAda,eng\n"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "CSV text with a header row. Rows become JSON objects."
  },
  "delimiter": {
   "type": "string",
   "maxLength": 1,
   "minLength": 1,
   "description": "Field separator, one character. Omit it to use a comma."
  }
 }
}
```

## More

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