# apiacre.com Data Cleaner

> apiacre.com Data Cleaner is a paid API for AI agents from apiacre.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Normalizes JSON record keys, whitespace, and empty values to produce clean, consistent structured data.

## Facts

- Endpoint: POST https://apiacre.com/v1/data/clean
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apiacre-com-data-cleaner-924ac5e1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ylSofQeNm620cyfXBfB4x

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 apiacre-com-data-cleaner-924ac5e1 -d '<json body>'
```

Example prompt: Clean this JSON record by normalizing the key names, trimming whitespace from all string values, and removing any empty or null fields: {"First Name ": "  Alice ", "last-name": "Smith", "email": "", "phone_number": null}.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call solution to normalize JSON key formatting, trim string whitespace, and strip empty values without standing up custom ETL logic. Ideal for preprocessing records before database ingestion, API chaining, or schema validation when data arrives from inconsistent sources.

## Known failure modes

- Malformed JSON input returns a 400 error
- Deeply nested or non-standard structures may not be fully normalized
- Key collision after normalization (e.g. two keys that map to the same normalized form) may cause data loss
- Non-string values treated as strings during whitespace trimming could cause type errors

## How this service works

Clean CSV, TSV, JSON, JSON Lines, or YAML records with collision-safe header normalization, deterministic integrity hashes, and exact transformation counts.

## Output

Returns the input record(s) with keys normalized to a consistent naming convention (e.g. snake_case), string values trimmed of leading/trailing whitespace, and empty or null fields removed, resulting in clean, consistently structured JSON.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "format": {
   "enum": [
    "csv",
    "tsv",
    "json",
    "jsonl",
    "yaml"
   ],
   "type": "string"
  },
  "content": {
   "type": "string"
  },
  "trim_strings": {
   "type": "boolean"
  },
  "empty_to_null": {
   "type": "boolean"
  },
  "normalize_headers": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "rows": 1,
   "records": [
    {
     "name": "Ada",
     "score": "98"
    }
   ],
   "cleaning": {
    "version": "apiacre-data-clean/2",
    "trimStrings": true,
    "sourceFormat": "csv",
    "normalizeHeaders": true,
    "emptyStringsAsNull": true
   },
   "warnings": [],
   "inputSha256": "421bdab658ee74ca45a19d7f7dbeb56ca7a52f249d7a8a7270eb9c633b5b04c4",
   "outputSha256": "952b31f519c09cf5c34d4ea6439175e6e77411228788aed1af6bec103155a465"
  },
  "meta": {
   "cached": false,
   "sources": [],
   "warnings": [],
   "duration_ms": 42,
   "next_actions": [
    {
     "path": "/v1/data/schema",
     "title": "JSON Schema generator",
     "method": "POST",
     "reason": "Infer a reusable Draft 2020-12 contract from the cleaned records.",
     "service": "data.schema"
    }
   ]
  },
  "service": "data.clean",
  "version": "1",
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apiacre-com-data-cleaner-924ac5e1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apiacre.com](https://www.zero.xyz/host/apiacre.com/llms.txt)
