# CSV Cleaner – Trim Fields & Standardize Format

> CSV Cleaner – Trim Fields & Standardize Format is a paid API for AI agents from x402-zoo.lolagent.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Normalizes a caller-supplied CSV string by trimming whitespace from fields, standardizing row widths, and fixing line endings.

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/csv-clean
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-cleaner-trim-fields-standardize-format-2b2119f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4i5Lzwy9efps5rAH_ZpK6

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-cleaner-trim-fields-standardize-format-2b2119f6
```

Example prompt: Can you clean up this CSV for me — trim any extra whitespace from the fields and standardize the line endings? Here's the data: 'name, age , city\nAlice , 30, New York \nBob,25 , Boston'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call CSV normalization step — particularly for small, caller-supplied payloads that need trimming and line-ending standardization before further processing, import, or display. Prefer it over building custom parsing logic when the task is purely formatting cleanup rather than schema validation or type conversion.

## Known failure modes

- Missing 'csv' query parameter returns an error indicating required input is absent
- Malformed or unparseable CSV content may return an error or produce unexpected output
- Extremely large CSV payloads may be rejected or truncated due to size limits on the serverless worker
- Unsupported delimiter characters may not be handled correctly

## How this service works

Normalize small caller-supplied CSV payloads, trim fields and standardize row width and line endings.

## Output

A cleaned CSV string with all field values trimmed of leading and trailing whitespace, standardized row widths, and consistent line endings. The structure and delimiter of the original CSV are preserved.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "csv"
     ],
     "properties": {
      "csv": {
       "type": "string"
      },
      "delimiter": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-cleaner-trim-fields-standardize-format-2b2119f6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-zoo.lolagent.workers.dev](https://www.zero.xyz/host/x402-zoo.lolagent.workers.dev/llms.txt)
