# CSV Normalize API

> CSV Normalize API is a paid API for AI agents from x402-micro-pay.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-20).

Parses and normalizes a raw CSV string, returning cleaned rows, inferred column types, and standardized headers as structured JSON.

## Facts

- Endpoint: POST https://x402-micro-pay.com/api/skills/csv-normalize?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-normalize-api-184de667
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hA-F9F4Dq3yZBw9jvOjFk

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-normalize-api-184de667 -d '<json body>'
```

Example prompt: Take this CSV text and normalize it — the delimiter is a comma — and give me back the cleaned rows with inferred column types: 'First Name,E-Mail\nAda,ada@example.com'.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call CSV normalization service with no API key or account setup — ideal for one-off or infrequent data cleaning tasks in an agentic pipeline. Best when you already have CSV text in memory and need structured JSON rows with type inference returned immediately. Prefer alternatives if you need large-scale batch processing beyond 400KB or require complex transformation rules beyond normalization.

## Known failure modes

- Malformed CSV with inconsistent column counts returns an error
- Empty CSV string (minLength:1 violated) returns a 400-style error
- CSV exceeding 400,000 characters is rejected
- Unsupported delimiter not in enum returns validation error
- HTTP 402 returned if payment not attached — requires x402 USDC payment on Base to proceed

## How this service works

41 pay-per-call JSON APIs for AI agents. No account or API key: an unpaid POST returns HTTP 402, pay in USDC on Base with x402 v2, retry. Prices from $0.001 per call.

## Output

Returns a JSON object with ok:true, the list of normalized column headers, an array of cleaned row objects (with standardized key names), the total row_count, and a column_types map indicating the inferred data type (e.g. string, integer) for each column.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 400000,
   "minLength": 1
  },
  "delimiter": {
   "enum": [
    ",",
    ";",
    "\t",
    "|"
   ],
   "type": "string",
   "default": ","
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "rows": [
   {
    "e_mail": "ada@example.com",
    "first_name": "Ada"
   }
  ],
  "skill": "csv_normalize",
  "headers": [
   "first_name",
   "e_mail"
  ],
  "row_count": 1,
  "column_types": {
   "e_mail": "string",
   "first_name": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-normalize-api-184de667/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-micro-pay.com](https://www.zero.xyz/host/x402-micro-pay.com/llms.txt)
