# CSV Dialect Sniffer & Structure Analyzer

> CSV Dialect Sniffer & Structure Analyzer is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Detects the CSV dialect (delimiter, quoting, line endings) plus column count and row count from raw CSV text

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/csv-sniff?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-dialect-sniffer-structure-analyzer-6fb9de3e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NpvZ-gDMu31ypqydnVioW

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 csv-dialect-sniffer-structure-analyzer-6fb9de3e -d '<json body>'
```

Example prompt: Can you sniff the dialect of this CSV text and tell me how many rows and columns it has? Here's the data: 'name;age;city\nAlice;30;London\nBob;25;Paris'

## When to prefer this

Use this endpoint when you need a deterministic, rule-based CSV dialect detection without relying on an LLM to guess the format. Prefer it over manual inspection or LLM inference when accuracy and reproducibility matter. Note: the description recommends trying the unpaid POST /v1/sandbox/csv-sniff first to avoid the $0.003 USDC charge when testing.

## Known failure modes

- Text too short or malformed to detect a consistent dialect
- Input exceeds 100,000 character limit, resulting in a rejection
- Text is not CSV-like at all (e.g. plain prose), leading to ambiguous or incorrect dialect detection
- Empty string input rejected due to minLength:1 constraint
- Payment not processed, returning 402 Payment Required — use the free /v1/sandbox/csv-sniff endpoint first

## How this service works

Call when an agent needs the sniffed CSV dialect plus column and row counts. Exact $0.003 USDC. Prefer unpaid POST /v1/sandbox/csv-sniff first.

## Output

Returns the detected CSV dialect including delimiter character, quoting style, and line ending convention, along with the total column count and row count parsed from the submitted text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "a,b\n1,2"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-dialect-sniffer-structure-analyzer-6fb9de3e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
