# BRAINIAC CSV Duplicate Row Detector

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

Detects duplicate rows in a CSV, JSON, or records dataset by comparing cells after trimming, grouping duplicates, and reporting row-level conflicts.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/data-quality/csv-duplicate-row-detect?utm_source=zero.xyz
- Price: $0.05/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-duplicate-row-detector-e15e8a4c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ja_N-IfMLjjgGYX28KT2V

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-duplicate-row-detector-e15e8a4c -d '<json body>'
```

Example prompt: Can you check this CSV for duplicate rows? I'll paste the content — flag any rows that appear more than once, grouped together, so I can review them before importing.

## When to prefer this

Use this endpoint when you need a quick, accountless, pay-per-call duplicate row detection on tabular data (CSV, JSON, or raw records) without setting up a data quality platform. Ideal for agents doing one-off data validation before ingestion, ETL pipelines, or reporting. Prefer this over manual deduplication scripts when you need structured, row-level duplicate group output with zero infrastructure.

## Known failure modes

- Input exceeds 2,000-row or 40-column limits — rows/columns beyond the limit are silently omitted and counts reflect what was read
- CSV or JSON is malformed and cannot be parsed — likely returns a parse error
- Neither csv, file, json, nor records field provided — missing input error
- File base64 exceeds 12MB limit — rejected with size error
- keyColumns references column names not present in the data — may produce empty or unexpected results

## 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 JSON object containing: a list of duplicate groups (each with the row numbers involved and a count), a flat issues list with row number, source row, error code, detail message, and column info, plus summary stats including recordsRead, blankRows, groupCount, columnsOmitted, recordsOmitted, and a checkedAt timestamp. No data is modified or deleted.

## 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",
  "groups": [
   {
    "rows": [
     {
      "row": 2,
      "sourceRow": 3
     },
     {
      "row": 5,
      "sourceRow": 6
     }
    ],
    "count": 2
   }
  ],
  "issues": [
   {
    "row": 5,
    "code": "duplicate_row",
    "kind": "conflict",
    "value": "",
    "column": "",
    "detail": "This record matches record 2 after trimming the compared cells. No record was removed.",
    "sourceRow": 6,
    "columnIndex": 0
   }
  ],
  "status": "checked",
  "blankRows": 0,
  "checkedAt": "2026-11-03T14:00:00.000Z",
  "groupCount": 1,
  "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 state how many.",
   "Rows that were read stay in the counts. None of those rows is deleted.",
   "Normalization is a proposal. The original cell is kept beside the proposed value.",
   "A statistical outlier is not a confirmed error.",
   "A date is normalized only when it is already a real YYYY-MM-DD day."
  ],
  "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-duplicate-row-detector-e15e8a4c/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)
