# Proofwork CSV to JSON Converter

> Proofwork CSV to JSON Converter is a paid API for AI agents from proofwork-the402-webhook.phase-voice.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-16).

Converts URL-encoded CSV text (with a header row) into structured JSON rows, column metadata, and row count via a pay-per-request x402 API on Base.

## Facts

- Endpoint: GET https://proofwork-the402-webhook.phase-voice.workers.dev/v1/csv-to-json
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/proofwork-csv-to-json-converter-b984f80b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5NNGc9Wq3K7ibATRJRpv_

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 proofwork-csv-to-json-converter-b984f80b
```

Example prompt: Can you convert this CSV text to JSON for me? The CSV has a header row: 'id,name,city\n1,Ada,London\n2,Grace,Chicago'

## When to prefer this

Use this endpoint when you need a quick, lightweight, pay-per-use CSV-to-JSON conversion without standing up your own parser — especially useful in agent workflows where tabular data arrives as raw CSV text and needs to be restructured as JSON for downstream processing. It is a good fit for small-to-medium CSV payloads passed inline as query parameters.

## Known failure modes

- Missing or malformed 'csv' query parameter returns an error
- CSV without a header row may produce unexpected key names or fail
- URL-encoding issues with special characters may corrupt the CSV input
- Payment failure via x402 on Base will block the request
- Extremely large CSV payloads may exceed query parameter size limits

## How this service works

Small non-cyber evidence and data APIs payable per request with x402 on Base.

## Output

Returns a JSON object containing an array of row objects (each CSV row as a key-value map using header names as keys), a list of column names, a total row count, a report type identifier ('csv_to_json'), and a content type field ('application/json').

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "csv"
     ],
     "properties": {
      "csv": {
       "type": "string",
       "description": "URL-encoded CSV text with a header row"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rows": [
   {
    "id": "1",
    "name": "Ada"
   },
   {
    "id": "2",
    "name": "Grace"
   }
  ],
  "report": "csv_to_json",
  "columns": [
   "id",
   "name"
  ],
  "row_count": 2,
  "content_type": "application/json"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/proofwork-csv-to-json-converter-b984f80b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from proofwork-the402-webhook.phase-voice.workers.dev](https://www.zero.xyz/host/proofwork-the402-webhook.phase-voice.workers.dev/llms.txt)
