# CoCo CSV to JSON Converter

> CoCo CSV to JSON Converter is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Converts CSV-formatted text into structured JSON records, returning parsed rows and field data.

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/csv-to-json?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-csv-to-json-converter-807bab40
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GySynh-koPf1drIVp8NfJ

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 coco-csv-to-json-converter-807bab40
```

Example prompt: Can you convert this CSV text to JSON for me? Here's the data: 'name,value\nexample,1\nfoo,42'

## When to prefer this

Choose this endpoint when you have CSV text in memory (not a file path or URL) and need a quick, low-cost conversion to JSON records with a row count. It is ideal for small-to-medium tabular payloads passed as a query string. Prefer alternatives if you need to convert from a file upload, a remote URL, or formats other than CSV.

## Known failure modes

- Malformed CSV with inconsistent column counts may produce unexpected record shapes
- Missing or empty 'text' query parameter could return an error or zero rows
- CSV with no header row may result in auto-generated or missing field names
- Very large CSV payloads may hit query parameter length limits via GET method
- Non-UTF-8 encoded characters in CSV may cause parsing errors

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

Returns a JSON object with a 'rows' count (integer) and a 'records' array, where each record is a JSON object with keys derived from the CSV header row and corresponding values from each data row.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "text": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "rows"
     ],
     "properties": {
      "rows": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rows": 1,
  "records": [
   {
    "name": "example",
    "value": "1"
   }
  ]
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-csv-to-json-converter-807bab40/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
