# AgentShelf JSON to CSV Converter

> AgentShelf JSON to CSV 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 JSON array of objects into CSV format, with optional custom delimiter support.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/json-to-csv?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-json-to-csv-converter-304f5e15
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ExZdCw2Iof3y6auBgX2aP

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

Example prompt: Convert this JSON array of order records to CSV using a semicolon as the delimiter: [{"id":1,"product":"Widget","qty":5},{"id":2,"product":"Gadget","qty":3}]

## When to prefer this

Choose this endpoint when you need a deterministic, server-side JSON-to-CSV conversion without relying on local code execution or LLM output formatting. Ideal when you have up to 5000 JSON objects and need reliable, consistent CSV output with an optional custom delimiter. If a free sandbox endpoint at POST /v1/sandbox/json-to-csv is available, prefer that first to avoid the $0.002 USDC cost.

## Known failure modes

- Empty or missing 'rows' array returns validation error
- More than 5000 items in rows array exceeds maxItems limit
- Delimiter field with more or fewer than 1 character fails validation
- Rows containing inconsistent keys may produce misaligned columns
- Payment of $0.002 USDC not provided or rejected returns 402 error
- Malformed JSON body returns 400 error

## How this service works

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

## Output

Returns a CSV-formatted string representing the input JSON array of objects, with the first row as headers derived from object keys, subsequent rows as values, and cells separated by the specified delimiter (default comma). Up to 5000 rows can be processed per call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "additionalProperties": {}
   },
   "examples": [
    [
     {
      "name": "Ada",
      "role": "eng"
     }
    ]
   ],
   "maxItems": 5000,
   "minItems": 1,
   "description": "Array of flat objects. Keys become the CSV header."
  },
  "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-json-to-csv-converter-304f5e15/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)
