# Cian CSV Data Quality Audit

> Cian CSV Data Quality Audit is a paid API for AI agents from cian-x402.netlify.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-20).

Audits a CSV file for data quality issues including blank lines, duplicate rows, ragged rows, type inconsistencies, encoding anomalies, and key-column problems

## Facts

- Endpoint: GET https://cian-x402.netlify.app/v1/csv-audit?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cian-csv-data-quality-audit-a79c6849
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sOJOie7nBaVDO6WWe-zDF

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 cian-csv-data-quality-audit-a79c6849
```

Example prompt: Can you audit this CSV for data quality issues — check for duplicate rows, blank lines, ragged rows, type inconsistencies, and encoding problems? Here's the CSV text: email,name,amount
ada@example.com,Ada,10.5
ada@example.com,Ada,10.5

## When to prefer this

Choose this endpoint when you need a fast, structured, per-column data quality report on a CSV file — especially when you care about type inference, key-column duplicate detection, encoding anomalies, and ragged row identification in a single call. It returns machine-readable JSON ideal for automated ETL gates or agent-driven data pipelines. Prefer this over manual inspection or generic linting when you need actionable row-level issue locations.

## Known failure modes

- Missing or malformed base64url-encoded CSV query parameter returns an error
- CSV too large may result in timeout or truncation
- Malformed CSV with no headers may produce unexpected column analysis
- Payment not included or insufficient — x402 payment required (0.05 USDC on Base) before response is served
- Network error reaching the Netlify-hosted endpoint

## How this service works

4 paid audit resources on one host, each 0.01 USDC on Base: HTTP endpoint health, Python static analysis, CSV data quality, and DNS/email authentication.

## Output

Returns a JSON object with: total row and column counts, per-column analysis (type inference, null/blank counts, distinct counts, type match ratios, type-inconsistent rows), blank line locations and count, duplicate row locations and examples, ragged row locations and examples, key column analysis (duplicates, blank key rows), encoding anomalies (BOM presence, line endings), and a total issue count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "description": "the query parameter holding the CSV text, base64url encoded",
     "additionalProperties": {
      "type": "string"
     }
    },
    "discoverable": {
     "const": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rows": 7,
  "columns": [
   "email",
   "name",
   "amount",
   "note",
   "created"
  ],
  "key_column": {
   "name": "email",
   "index": 1,
   "comparison": "trimmed and case-folded",
   "blank_key_rows": 1,
   "duplicates_by_key": {
    "rows": [
     3
    ],
    "count": 1,
    "examples": [
     {
      "row": 3,
      "value": "ada@example.com",
      "first_seen_at": 1
     }
    ]
   }
  },
  "blank_lines": {
   "rows": [
    6
   ],
   "count": 1
  },
  "issue_count": 9,
  "ragged_rows": {
   "rows": [
    4
   ],
   "count": 1,
   "examples": [
    {
     "row": 4,
     "fields": 2,
     "expected": 5
    }
   ]
  },
  "column_count": 5,
  "column_detail": [
   {
    "name": "email",
    "index": 1,
    "null_count": 1,
    "blank_count": 0,
    "distinct_count": 5,
    "type_inference": "email",
    "type_match_ratio": 1,
    "type_match_ratios": {
     "int": 0,
     "url": 0,
     "date": 0,
     "email": 1,
     "float": 0
    },
    "duplicate_value_count": 1,
    "type_inconsistent_rows": [],
    "type_inconsistent_count": 0
   },
   {
    "name": "name",
    "index": 2,
    "null_count": 0,
    "blank_count": 0,
    "distinct_count": 6,
    "type_inference": "text",
    "type_match_ratio": null,
    "type_match_ratios": {
     "int": 0,
     "url": 0,
     "date": 0,
     "email": 0,
     "float": 0
    },
    "duplicate_value_count": 1,
    "type_inconsistent_rows": [],
    "type_inconsistent_count": 0
   },
   {
    "name": "amount",
    "index": 3,
    "null_count": 0,
    "blank_count": 0,
    "distinct_count": 6,
    "type_inference": "float",
    "type_match_ratio": 0.8571,
    "type_match_ratios": {
     "int": 0,
     "url": 0,
     "date": 0,
     "email": 0,
     "float": 0.8571
    },
    "duplicate_value_count": 1,
    "type_inconsistent_rows": [
     {
      "row": 8,
      "value": "n/a"
     }
    ],
    "type_inconsistent_count": 1
   },
   {
    "name": "note",
    "index": 4,
    "null_count": 1,
    "blank_count": 0,
    "distinct_count": 5,
    "type_inference": "text",
    "type_match_ratio": null,
    "type_match_ratios": {
     "int": 0,
     "url": 0,
     "date": 0,
     "email": 0,
     "float": 0
    },
    "duplicate_value_count": 1,
    "type_inconsistent_rows": [],
    "type_inconsistent_count": 0
   },
   {
    "name": "created",
    "index": 5,
    "null_count": 0,
    "blank_count": 0,
    "distinct_count": 6,
    "type_inference": "date",
    "type_match_ratio": 1,
   
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cian-csv-data-quality-audit-a79c6849/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cian-x402.netlify.app](https://www.zero.xyz/host/cian-x402.netlify.app/llms.txt)
