# CSV to JSON Converter

> CSV to JSON Converter is a paid API for AI agents from bounty-engineer-x402-prod.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Converts a CSV string into structured JSON records, returning headers, rows, and record count

## Facts

- Endpoint: POST https://bounty-engineer-x402-prod.onrender.com/v1/csv-to-json?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-to-json-converter-f5b17d61
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RcFeJRDqr5qCQ4J0vZTUF

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

Example prompt: Convert this CSV text to JSON for me — it has headers in the first row and uses a comma delimiter: 'id,name,email\n1,Ada,ada@example.com\n2,Linus,linus@example.com'

## When to prefer this

Choose this endpoint when you need a quick, paid-per-call CSV-to-JSON conversion without standing up your own parsing infrastructure — especially useful in agentic pipelines where CSV data arrives dynamically and needs to be structured for downstream JSON APIs or data stores. It supports custom delimiters (TSV, semicolon-separated, etc.) and explicit header toggling.

## Known failure modes

- Malformed CSV input with inconsistent column counts may produce incomplete records
- Missing or invalid delimiter specification could cause incorrect parsing
- Very large CSV payloads may exceed request size limits or result in truncated output (truncated_columns: true)
- Empty CSV string returns zero records
- Payment failure (402) if USDC balance is insufficient

## How this service works

Machine-buyable infrastructure for autonomous agents: API cost routing, margin optimization, funding-rate data, webpage extraction, result verification, spend controls, retry planning, state, tender search and GitHub bounty intelligence.

## Output

Returns a JSON object with ok status, mode identifier, a headers array of column names, a records array of objects keyed by header, a record_count integer, and a truncated_columns boolean indicating if any columns were cut off

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string"
  },
  "headers": {
   "type": "boolean"
  },
  "delimiter": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "mode": "csv_to_json",
  "headers": [
   "id",
   "name"
  ],
  "records": [
   {
    "id": "1",
    "name": "Ada"
   },
   {
    "id": "2",
    "name": "Linus"
   }
  ],
  "record_count": 2,
  "truncated_columns": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-to-json-converter-f5b17d61/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bounty-engineer-x402-prod.onrender.com](https://www.zero.xyz/host/bounty-engineer-x402-prod.onrender.com/llms.txt)
