# Delx Commerce CSV Row Count

> Delx Commerce CSV Row Count 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).

Counts the number of data rows in a UTF-8 CSV string and guesses whether a header row is present

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/csv-row-count?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-row-count-6d6fe644
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1jpZ8mnRS1KtQ-fmpxfKJ

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-row-count-6d6fe644 -d '<json body>'
```

Example prompt: Count the rows in this CSV text for me — I need to know how many data records it has and whether it has a header row: 'name,age,city
Alice,30,NYC
Bob,25,LA
Carol,28,Chicago'

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.001 USDC), privacy-preserving row count on CSV text without uploading data to third-party services. It is ideal for agent workflows that need to gate on record count, validate pipeline outputs, or confirm data sizes before expensive downstream operations. Prefer it over general-purpose code execution when you want a verifiable, pay-per-result micro-API call with no signup friction.

## Known failure modes

- Malformed or non-UTF-8 CSV text may produce inaccurate row counts
- Empty string input may return zero rows
- Very large CSV text strings may hit size limits or timeout
- Header detection is a heuristic guess and may be incorrect for ambiguous CSVs
- Payment failure or insufficient USDC balance will block the request via x402 protocol

## 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: 'rows' (integer count of data rows, excluding header if detected), 'schema' (identifier string 'delx/csv-row-count/v1'), and 'has_header_guess' (boolean indicating whether the first row appears to be a header). The CSV is parsed locally and not sent to third parties.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv_text": {
   "type": "string",
   "description": "UTF-8 CSV text. Parsed locally; not uploaded to third parties."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rows": 3,
  "schema": "delx/csv-row-count/v1",
  "has_header_guess": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-csv-row-count-6d6fe644/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)
