# Delx Commerce — CSV Column Count Check

> Delx Commerce — CSV Column Count Check is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Validates that every row in a CSV text has the expected number of columns, returning a pass/fail result with details on any invalid rows.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/csv-column-count-check?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-csv-column-count-check-585540ad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1VhCCNgTmvYleAfJ4EGUD

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 delx-commerce-csv-column-count-check-585540ad -d '<json body>'
```

Example prompt: Check if this CSV text has exactly 3 columns in every row and tell me which rows are invalid: 'name,age,city\nAlice,30,NYC\nBob,25\nCarol,28,LA'

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call, no-signup validation that a CSV's rows all have a consistent and expected number of columns. It is ideal for agent pipelines that need a verifiable, tamper-evident check (SHA-256 evidence, no data retention) before ingesting or transforming CSV data. Prefer it over building custom parsing logic when operating in automated agent workflows that support x402 micropayments on Base or Solana.

## Known failure modes

- Malformed or non-CSV text input may produce unexpected column counts
- CSV exceeding 8192 character limit will be rejected
- Missing 'expected_columns' integer parameter causes validation error
- Empty CSV text returns trivially passing result with no rows checked
- Encoding issues in CSV text may cause incorrect column parsing

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing a 'result' with a boolean 'passed' field, a list of 'invalid_rows' (empty if all rows are valid), and the 'header_columns' count. Also includes a 'status' string ('pass' or 'fail'), an 'operation' identifier, and an 'evidence' block with input SHA-256 hash, retention flag (always false), and external call count for verifiability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 8192,
   "description": "Text supplied to CSV Column Count Check; used only for this bounded calculation and processed in memory without retention."
  },
  "expected_columns": {
   "type": "integer",
   "description": "Expected Columns supplied to CSV Column Count Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "passed": true,
   "invalid_rows": [],
   "header_columns": 2
  },
  "schema": "delx/util-csv-column-count-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "43c14336a55089e6418f34c8148a557706d0aeff75358365faa1dca16fa7cf64",
   "external_calls": 0
  },
  "operation": "data_batch:csv_column_count_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-csv-column-count-check-585540ad/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
