# Swift Bot Labs Toolbox – CSV to JSON Converter

> Swift Bot Labs Toolbox – CSV to JSON Converter is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Converts a CSV string into a structured JSON array, with automatic delimiter detection, optional header parsing, and type inference.

## Facts

- Endpoint: POST https://x402-toolbox.swiftbotlab.workers.dev/v1/csv/to-json?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-toolbox-csv-to-json-converter-51a64d7a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bwvFmjcGlFukvz_bDgPRs

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 swift-bot-labs-toolbox-csv-to-json-converter-51a64d7a -d '<json body>'
```

Example prompt: Convert this CSV text to JSON for me — it has headers in the first row, uses commas as delimiters, and I'd like numbers and booleans inferred automatically: 'name,age,active\nDoe Jane,34,true\nBob,,false'

## When to prefer this

Choose this endpoint when you need a lightweight, no-auth, pay-per-call CSV-to-JSON conversion without setting up an account or managing API keys. Ideal for one-off agent tasks, automation pipelines, or serverless workflows that need to handle CSV data programmatically. Prefer alternatives if you need streaming large files, complex multi-table CSVs, or free tier access.

## Known failure modes

- Malformed CSV with unbalanced quotes returns a parse error
- CSV exceeding 1 MB (1,048,576 chars) is rejected
- Payment failure or missing x402 header returns 402 Payment Required
- Empty CSV string may return zero rows with no error
- Ambiguous delimiter when set to 'auto' may cause misparse of columns

## How this service works

62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.

## Output

Returns a JSON object with ok=true, the tool name, and a result containing: a 'data' array of objects (one per CSV row, keyed by column headers or positional index), total row count, column names array, and the detected delimiter character.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 1048576
  },
  "header": {
   "type": "boolean",
   "default": true
  },
  "delimiter": {
   "enum": [
    "auto",
    ",",
    ";",
    "\t",
    "|"
   ],
   "type": "string",
   "default": "auto"
  },
  "inferTypes": {
   "type": "boolean",
   "default": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "csv-to-json",
  "result": {
   "data": [
    {
     "age": 34,
     "name": "Doe, Jane",
     "active": true
    },
    {
     "age": null,
     "name": "Bob",
     "active": false
    }
   ],
   "rows": 2,
   "columns": [
    "name",
    "age",
    "active"
   ],
   "delimiter": ","
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-toolbox-csv-to-json-converter-51a64d7a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
