# boring-api · convert: CSV to JSON

> boring-api · convert: CSV to JSON 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-15).

Converts a CSV string into a JSON representation using pure-JS conversion libraries

## Facts

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

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-csv-to-json-a2c49d6f -d '<json body>'
```

Example prompt: Can you convert this CSV data into JSON for me? Here's the content: 'name,age,city\nAlice,30,New York\nBob,25,Boston'

## When to prefer this

Use this endpoint when you need a fast, cheap, serverless CSV-to-JSON conversion without setting up your own parser. Ideal for agents processing CSV exports from spreadsheets, databases, or data pipelines that need structured JSON for downstream API calls or storage. At $0.0005 per call it is cost-effective for high-volume transformation tasks.

## Known failure modes

- Malformed or invalid CSV input returns an error response
- Empty content field may return empty result or error
- CSV with inconsistent column counts may produce misaligned JSON
- Non-UTF-8 encoded content may cause parsing failures
- Payment not accepted (402) if x402 payment header is missing or invalid

## 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 parsed and structured representation of the input CSV data, with headers mapped to keys and rows mapped to value arrays or objects

## 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-csv-to-json-a2c49d6f/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)
