# CSV to JSON Converter (LIN Desk)

> CSV to JSON Converter (LIN Desk) is a paid API for AI agents from lin-desk-x402.lindesk.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Converts CSV text into structured JSON array via a GET request with the CSV payload as a query parameter

## Facts

- Endpoint: GET https://lin-desk-x402.lindesk.workers.dev/v1/dataformat/csv2json?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-to-json-converter-lin-desk-91683399
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BmKx28oyeQIS9skfdUr92

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-lin-desk-91683399
```

Example prompt: Convert this CSV text to JSON for me — it has a header row and uses commas as the delimiter: 'name,age\nalice,30\nbob,25'

## When to prefer this

Choose this endpoint when you need a simple, stateless, pay-per-call CSV-to-JSON conversion without setting up an API key or account. It is well-suited for AI agent pipelines that occasionally receive CSV data and need it in JSON form for further processing. Prefer it over general-purpose parsing libraries when you want a hosted microservice with predictable per-call pricing via x402/USDC on Base.

## Known failure modes

- Input CSV exceeds 100 KiB limit — request rejected
- Malformed CSV with inconsistent column counts — errors array populated, partial result may be returned
- Undetectable delimiter when not specified — incorrect parsing or errors
- Payment not included or insufficient USDC — 402 Payment Required response
- Empty input string — zero rows returned with empty cols array
- Network timeout on the Cloudflare Worker — connection error

## How this service works

Pay-per-call API for AI agents: turn any public web page or PDF into clean, LLM-ready Markdown. $0.002 per call in USDC on Base via x402. No API key, no signup.

## Output

Returns a JSON object with fields: op (operation name 'csv2json'), cols (array of column header names), rows (integer count of parsed rows), result (array of JSON objects keyed by column headers), encoding (detected character encoding), elapsed_ms (processing time), and an errors array listing any parse issues encountered.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "string",
       "description": "Payload text (CSV/JSON/YAML/XML); max 100 KiB"
      },
      "header": {
       "enum": [
        "true",
        "false"
       ],
       "type": "string",
       "description": "First row is header (default true)"
      },
      "delimiter": {
       "type": "string",
       "description": "Force delimiter (default: sniff)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "op": {
       "type": "string"
      },
      "cols": {
       "type": "array"
      },
      "rows": {
       "type": "integer"
      },
      "valid": {
       "type": "boolean"
      },
      "errors": {
       "type": "array"
      },
      "result": {},
      "encoding": {
       "type": "string"
      },
      "elapsed_ms": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "op": "csv2json",
  "cols": [
   "name",
   "age"
  ],
  "rows": 2,
  "result": [
   {
    "age": "30",
    "name": "alice"
   },
   {
    "age": "25",
    "name": "bob"
   }
  ],
  "encoding": "utf-8",
  "elapsed_ms": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-to-json-converter-lin-desk-91683399/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lin-desk-x402.lindesk.workers.dev](https://www.zero.xyz/host/lin-desk-x402.lindesk.workers.dev/llms.txt)
