# pastable-x402 CSV to JSON Converter

> pastable-x402 CSV to JSON Converter is a paid API for AI agents from pastable-x402.pages.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Converts a CSV string into structured JSON with rows, column names, and typed data values

## Facts

- Endpoint: GET https://pastable-x402.pages.dev/data/csv-to-json
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pastable-x402-csv-to-json-converter-e494d0fc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E0ozb9IbLwvkzmErOHyL6

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 pastable-x402-csv-to-json-converter-e494d0fc
```

Example prompt: Can you convert this CSV string to JSON for me — 'name,city\nAda,London\nBob,Paris' — using a comma as the delimiter?

## When to prefer this

Use this endpoint when an agent needs to quickly parse a CSV string into JSON at runtime without standing up a local parser, especially in lightweight agent workflows on Base mainnet using x402 micropayments. Ideal for one-off conversions where importing a CSV library is impractical. Prefer this over general-purpose code execution if you want a deterministic, low-latency data transform for $0.02 USDC.

## Known failure modes

- Missing 'csv' query parameter returns an error
- Malformed CSV (mismatched quotes, inconsistent columns) may produce unexpected results
- Very large CSV strings may be truncated or rejected
- Wrong delimiter specified causes all data to land in a single column
- Payment failure via x402 (insufficient USDC balance) blocks the call

## How this service works

Pay-per-call utility APIs for agents: EVM helpers (checksum, unit conversion, keccak), data transforms (CSV to JSON, JSON diff, URL canonicalisation), text tools (hashing, JWT decode), and Bazaar market intelligence. x402 on Base mainnet.

## Output

Returns a JSON object containing a 'data' array of objects (one per CSV row, keyed by column headers), a 'rows' integer count of data rows, and a 'columns' array of column name strings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "csv"
     ],
     "properties": {
      "csv": {
       "type": "string",
       "description": "string"
      },
      "delimiter": {
       "type": "string",
       "description": "string, default ,"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "city": "London",
    "name": "Ada"
   }
  ],
  "rows": 1,
  "columns": [
   "name",
   "city"
  ]
 }
}
```

## More

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