# boring-api · convert: JSON to CSV

> boring-api · convert: JSON to CSV is a paid API for AI agents from convert.boring-api.com, paid per call via x402, $0.0005/call, status unknown (last checked 2026-09-14).

Converts a JSON payload into CSV format using pure-JS libraries, returning the result as a JSON-fielded string.

## Facts

- Endpoint: POST https://convert.boring-api.com/json-to-csv
- Price: $0.0005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/boring-api-convert-json-to-csv-c37ec6e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dO4zniTqhOxS1C2WyrMqf

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 boring-api-convert-json-to-csv-c37ec6e6 -d '<json body>'
```

Example prompt: Can you convert this JSON data into a CSV file for me? Here's the content: '[{"name":"Alice","age":30,"city":"NYC"},{"name":"Bob","age":25,"city":"LA"}]' — I need it in CSV so I can open it in Excel.

## When to prefer this

Choose this endpoint when you need a fast, low-cost ($0.0005 USDC), serverless JSON-to-CSV conversion without setting up local tooling. Ideal for agents automating data pipelines that need to export JSON API responses into spreadsheet-compatible formats. Prefer this over generic file conversion services when input is specifically JSON and output must be standard CSV.

## Known failure modes

- Invalid or malformed JSON input returns an error response
- Nested/complex JSON objects may not flatten cleanly into tabular CSV rows
- Empty JSON array may return an empty CSV with no rows
- Missing 'content' field in request body causes a validation error
- Deeply nested JSON structures may lose hierarchy information in flat CSV output

## How this service works

Document and data format conversions via Pandoc, Chromium-headless, and pure-JS libs. Text inputs/outputs are JSON-fielded; binary inputs/outputs use base64 in JSON for uniformity.

## Output

A JSON object containing the converted CSV text, where JSON array records become CSV rows with headers derived from JSON keys, suitable for import into spreadsheet tools or further processing.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/boring-api-convert-json-to-csv-c37ec6e6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from convert.boring-api.com](https://www.zero.xyz/host/convert.boring-api.com/llms.txt)
