# FastX402 Lab CSV to JSON Converter

> FastX402 Lab CSV to JSON Converter is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-17).

Converts RFC 4180-compliant CSV text into structured JSON rows, supporting optional headers and multiple delimiters (comma, semicolon, tab, pipe).

## Facts

- Endpoint: GET https://fastx402.tools/csv-to-json?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-lab-csv-to-json-converter-1a724f4e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_goIwAh05l1zwsAlPe2hQ4

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 fastx402-lab-csv-to-json-converter-1a724f4e
```

Example prompt: Convert this CSV text to JSON for me — it uses semicolons as delimiters and the first line is a header: "name;city;note\nAyşe;İstanbul;likes tea\nBob;Berlin;two lines"

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call CSV-to-JSON conversion without setting up a local parser — especially useful in agent pipelines handling CSV exports from databases, spreadsheets, or APIs. It correctly handles RFC 4180 edge cases (quoted fields, escaped quotes, CRLF line endings, Unicode characters) and supports four common delimiters, making it more robust than naive string-splitting approaches.

## Known failure modes

- Malformed CSV that violates RFC 4180 quoting rules may produce incorrect row splits or parsing errors
- Specifying the wrong delimiter results in unsplit columns returned as single fields
- Passing header=false when the CSV has a header line will treat the header as a data row
- Very large CSV inputs may exceed query parameter size limits
- Non-UTF-8 encoded CSV text may cause character encoding issues

## How this service works

146 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

A JSON object containing: a 'rows' array of objects (each row mapped to its column keys if headers are used, or indexed otherwise), a 'columns' array of column names, and a 'row_count' integer indicating the total number of data rows parsed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "csv"
     ],
     "properties": {
      "csv": {
       "type": "string",
       "description": "CSV text"
      },
      "header": {
       "enum": [
        "true",
        "false"
       ],
       "type": "string",
       "description": "true (default) when the first line is the header, else false"
      },
      "delimiter": {
       "enum": [
        ",",
        ";",
        "tab",
        "|"
       ],
       "type": "string",
       "description": "\",\" (default), \";\", \"tab\" or \"|\""
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "rows": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "city": {
          "type": "string"
         },
         "name": {
          "type": "string"
         },
         "note": {
          "type": "string"
         }
        }
       }
      },
      "columns": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "row_count": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rows": [
   {
    "city": "İstanbul",
    "name": "Ayşe",
    "note": "likes \"tea\", coffee"
   },
   {
    "city": "Berlin",
    "name": "Bob",
    "note": "two\nlines"
   }
  ],
  "columns": [
   "name",
   "city",
   "note"
  ],
  "row_count": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-lab-csv-to-json-converter-1a724f4e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
