# BRAINIAC CSV Normalize

> BRAINIAC CSV Normalize is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-16).

Normalizes tabular data (CSV, JSON, or records) by detecting and fixing common data quality issues such as inconsistent casing, boolean token variants, and whitespace, returning a proposed set of changes.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/data-quality/csv-normalize?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-csv-normalize-a0a1ac1d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_es4JaDZUToPCqjogUUahE

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 brainiac-csv-normalize-a0a1ac1d -d '<json body>'
```

Example prompt: Can you normalize this CSV data for me — standardize the email column to lowercase, convert yes/no values to true/false booleans, and trim whitespace from the amount column? Here's the CSV content: [csv string].

## When to prefer this

Use this endpoint when you need a lightweight, accountless, pay-per-call data normalization step — particularly for cleaning CSV or JSON tabular data before import, transformation, or display. It is ideal for agents that encounter messy field values (mixed-case emails, inconsistent boolean tokens, whitespace padding) and need a proposed set of safe, rule-based fixes without touching any external system. Prefer this over manual scripting or heavier ETL platforms when you want fast, deterministic normalization with no setup.

## Known failure modes

- Input exceeds 200,000 character limit for CSV/JSON strings — request will be rejected
- Record array exceeds 5,000-item limit — excess rows will be omitted
- Column names exceed 80-character limit — may cause parsing errors
- Unsupported media type in file upload — only text/csv, application/json, and text/plain are accepted
- Malformed CSV or JSON input — may result in parsing errors or empty changes array
- Payment not received or insufficient USDC — 402 response with payment instructions

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

A JSON object containing: a 'status' field (e.g. 'proposed'), a 'changes' array listing each proposed normalization (row index, column name, rule applied, original value, normalized value, and column index), a 'rowCount', 'blankRows', 'issues' list, 'format', and 'checkedAt' timestamp. Also includes a 'limitations' array describing what the service does and does not do. Changes are proposals only — no data is modified in any external system.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "file": {
   "type": "object",
   "required": [
    "mediaType",
    "fileBase64"
   ],
   "properties": {
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/csv",
      "application/json",
      "text/plain"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "records": {
   "type": "array",
   "items": {
    "type": "object",
    "propertyNames": {
     "type": "string",
     "maxLength": 80,
     "minLength": 1
    },
    "additionalProperties": {
     "anyOf": [
      {
       "type": "string",
       "maxLength": 4000
      },
      {
       "type": "number"
      },
      {
       "type": "boolean"
      },
      {
       "type": "null"
      }
     ]
    }
   },
   "maxItems": 5000
  },
  "keyColumns": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 80,
    "minLength": 1
   },
   "maxItems": 20
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "format": "csv",
  "issues": [],
  "status": "proposed",
  "changes": [
   {
    "row": 1,
    "rule": "email_lower",
    "column": "email",
    "original": "Ada@Example.com",
    "sourceRow": 2,
    "normalized": "ada@example.com",
    "columnIndex": 2
   },
   {
    "row": 1,
    "rule": "boolean_token",
    "column": "status",
    "original": "yes",
    "sourceRow": 2,
    "normalized": "true",
    "columnIndex": 4
   },
   "…"
  ],
  "rowCount": 12,
  "blankRows": 0,
  "checkedAt": "2026-11-03T14:00:00.000Z",
  "limitations": [
   "No business system is contacted or updated.",
   "Rows past the 2,000-row limit and columns past the 40-column limit are not read. recordsOmitted and columnsOmitted stat…",
   "…"
  ],
  "recordsRead": 12,
  "changedCount": 13,
  "dataModified": false,
  "columnsOmitted": 0,
  "recordsOmitted": 0,
  "unchangedCount": 1,
  "recordsDiscarded": false,
  "outliersConfirmed": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-csv-normalize-a0a1ac1d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
