# Strale CSV Cleaner

> Strale CSV Cleaner is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0216/call, status unknown (last checked 2026-09-14).

Cleans and normalizes a messy CSV string, fixing formatting inconsistencies, quoting issues, and structural problems.

## Facts

- Endpoint: GET https://api.strale.io/x402/v2/csv-clean
- Price: $0.0216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-csv-cleaner-d5b97316
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZkwH4h3v0Q0qg7ATc0288

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 strale-csv-cleaner-d5b97316
```

Example prompt: Can you clean up this messy CSV for me? It has inconsistent quoting and some broken rows: 'name,age,city
"Alice",30,"New York
Bob,"25,Chicago
Carol,28,"Los Angeles"'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use CSV cleaning call with a built-in cryptographic audit trail — especially useful in automated pipelines where traceability and trust matter. Prefer it over local parsing libraries when you need a hosted, accountable transformation step, or when operating in an x402 micropayment-enabled agent workflow.

## Known failure modes

- Missing or empty csv query parameter — returns validation error
- Input is not recognizable as CSV (e.g. binary data, pure JSON) — may return error or unexpected output
- Extremely large CSV strings may exceed URL length limits for GET requests
- Network timeout if the service is under load
- 402 Payment Required if USDC micropayment is not properly configured

## How this service works

Clean messy CSV: fix inconsistent delimiters, mixed encodings, BOM, trailing commas, quoted fields. Returns clean CSV with issues report.

## Output

Returns a cleaned, normalized CSV string with consistent quoting, proper escaping, and fixed structural issues. Each call also returns a cryptographic audit record with chain hashing for traceability and trust verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "csv"
 ],
 "properties": {
  "csv": {
   "type": "string",
   "description": "Messy CSV string to clean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "csv": {
  "type": "string"
 },
 "row_count": {
  "type": "integer"
 },
 "column_count": {
  "type": "integer"
 },
 "issues_fixed": {
  "type": "array"
 },
 "detected_delimiter": {
  "type": "string"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/strale-csv-cleaner-d5b97316/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
