# BRAINIAC CSV Column Type Detector

> BRAINIAC CSV Column Type Detector 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-17).

Analyzes CSV, JSON, or record data to detect column data types, identify inconsistencies, and report format conflicts across rows

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/data-quality/csv-column-type-detect?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-csv-column-type-detector-879d3549
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fC1S4JmB7dAiVkfkTiOVJ

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-column-type-detector-879d3549 -d '<json body>'
```

Example prompt: Can you analyze this CSV and tell me what data type each column contains, and flag any rows where a value doesn't match the column's most common type?

## When to prefer this

Choose this endpoint when you need automated column-level type inference on tabular data (CSV, JSON records, or plain text) without setting up an account or long-term subscription. It is ideal for one-off data quality checks before ETL pipelines, database imports, or data cleaning workflows. Prefer it over manual inspection or heavier data profiling tools when you need a fast, cheap, pay-per-use analysis with structured JSON output including per-row conflict reporting.

## Known failure modes

- Input exceeds 200,000 character limit for CSV/JSON strings — request rejected
- File base64 exceeds 12,000,000 character limit — request rejected
- More than 5,000 records supplied in records array — excess ignored or rejected
- Rows past the 2,000-row limit are not analyzed — recordsOmitted indicates how many were skipped
- Columns past the 40-column limit are not analyzed — columnsOmitted indicates how many were skipped
- Malformed CSV or JSON input — parse error returned
- Payment not completed via x402/USDC on Base — 402 response, no result returned

## 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

Returns a structured JSON object with per-column type analysis (name, detected type, index, observed type counts), a list of issues/conflicts per row (including which column, what value, what code, and a detail message), counts of blank rows, records read, omitted rows and columns, a checkedAt timestamp, and a list of limitations. The dataModified field confirms no data is altered. Status field indicates detection outcome.

## 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": [
   {
    "row": 7,
    "code": "inconsistent_format",
    "kind": "conflict",
    "value": "not-an-email",
    "column": "email",
    "detail": "The most common type is email. This value was not changed.",
    "sourceRow": 8,
    "columnIndex": 2
   },
   {
    "row": 7,
    "code": "inconsistent_format",
    "kind": "conflict",
    "value": "03/11/2026",
    "column": "joined",
    "detail": "The most common type is date. This value was not changed.",
    "sourceRow": 8,
    "columnIndex": 5
   }
  ],
  "status": "detected",
  "columns": [
   {
    "name": "id",
    "type": "integer",
    "index": 1,
    "observed": [
     {
      "type": "integer",
      "count": 12
     }
    ]
   },
   {
    "name": "email",
    "type": "mixed",
    "index": 2,
    "observed": [
     {
      "type": "email",
      "count": 11
     },
     {
      "type": "string",
      "count": 1
     }
    ]
   },
   "…"
  ],
  "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,
  "dataModified": false,
  "columnsOmitted": 0,
  "recordsOmitted": 0,
  "recordsDiscarded": false,
  "outliersConfirmed": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-csv-column-type-detector-879d3549/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)
