# MolCloud Data Transform: JSON ↔ CSV Converter

> MolCloud Data Transform: JSON ↔ CSV Converter is a paid API for AI agents from api.molcloud.net, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-17).

Converts JSON arrays to CSV or CSV strings to JSON, returning the transformed data with a row count.

## Facts

- Endpoint: POST https://api.molcloud.net/api/data/transform?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/molcloud-data-transform-json-csv-converter-18e04b08
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Odk05WaNd9RDiuGiC79Vb

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 molcloud-data-transform-json-csv-converter-18e04b08 -d '<json body>'
```

Example prompt: Convert this JSON array to CSV format: [{"token":"USDC","chain":"Base"},{"token":"ETH","chain":"Ethereum"}]

## When to prefer this

Choose this endpoint when an AI agent needs lightweight, pay-per-use JSON↔CSV conversion without standing up a local parser or importing libraries — especially useful in serverless or edge agent contexts where USDC micropayments via x402 are already in use. Prefer it over general-purpose code execution endpoints when the sole goal is format conversion of tabular data.

## Known failure modes

- Invalid JSON input (malformed JSON array returns error)
- CSV input with inconsistent columns may produce unexpected JSON structure
- Missing required 'toFormat' enum value causes request rejection
- Unsupported format value outside 'csv' or 'json' enum returns validation error
- Payment failure via x402/USDC on Base blocks request processing

## How this service works

41 pay-per-request AI, search, headless browser, crypto alpha & memory APIs for autonomous agents settling in USDC on Base via x402 v2.

## Output

Returns a JSON object with a 'data' field containing the converted output string (CSV or JSON) and a row count indicating how many rows were processed, plus a status field confirming success and the endpoint path.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "description": "JSON array or CSV string to convert"
  },
  "toFormat": {
   "enum": [
    "csv",
    "json"
   ],
   "type": "string",
   "description": "Target output format"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "output": "token,chain\nUSDC,Base",
   "rowCount": 1
  },
  "status": "success",
  "endpoint": "/api/data/transform"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/molcloud-data-transform-json-csv-converter-18e04b08/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.molcloud.net](https://www.zero.xyz/host/api.molcloud.net/llms.txt)
