# Strale JSON to CSV Converter

> Strale JSON to CSV Converter is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0216/call, status unknown (last checked 2026-09-14).

Converts a JSON data string into CSV format, transforming structured JSON objects or arrays into comma-separated values.

## Facts

- Endpoint: GET https://api.strale.io/x402/v2/json-to-csv
- Price: $0.0216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-json-to-csv-converter-941d8179
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_90pygN0We1ACgci0RJuLX

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 strale-json-to-csv-converter-941d8179
```

Example prompt: Can you convert this JSON data into a CSV for me? Here's the JSON: [{"name":"Alice","age":30,"city":"Berlin"},{"name":"Bob","age":25,"city":"Vienna"}]

## When to prefer this

Choose this endpoint when you need a simple, fast, auditable JSON-to-CSV conversion via a REST or x402 micropayment call, especially in agent pipelines where each transformation step benefits from a cryptographic audit record. Prefer it over client-side libraries when you need a consistent server-side conversion with a pay-per-use model and no infrastructure overhead.

## Known failure modes

- Malformed or invalid JSON input returns an error — the data field must be valid JSON
- Deeply nested JSON objects may not flatten cleanly into a flat CSV structure
- Empty JSON arrays or objects may return an empty CSV with only headers
- Non-array JSON (e.g. a single flat object) may produce a single-row CSV

## How this service works

The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.

## Output

Returns a CSV-formatted string with column headers derived from the JSON keys and one row per JSON array element or object entry, ready to be saved as a .csv file or passed to spreadsheet tools.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/strale-json-to-csv-converter-941d8179/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
