# 24K Labs CSV Profile

> 24K Labs CSV Profile is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Profiles a CSV file and returns column-level statistics including inferred type, count, null count, distinct count, min/max/mean for numeric columns, and sample values.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/csv-profile
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-csv-profile-4ec6b9d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x3YUOm0RdbeXQprjfCo0O

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 24k-labs-csv-profile-4ec6b9d7 -d '<json body>'
```

Example prompt: Can you profile this CSV file for me and tell me each column's data type, how many nulls there are, distinct value counts, and the min/max/mean for any numeric columns?

## When to prefer this

Choose this endpoint when you need a fast, one-call statistical audit of a CSV file — especially when you want column-level type inference, null/distinct counts, and numeric min/max/mean without writing custom data-profiling code. It is ideal for pre-processing validation, quick dataset exploration, and data quality checks before ETL pipelines or ML workflows.

## Known failure modes

- Malformed or unparseable CSV returns an error indicating the file could not be processed
- Empty CSV file results in an empty statistics object or error
- Very large CSV files may time out or be rejected if they exceed size limits
- Non-CSV content (e.g. JSON or binary) passed as input returns a parse error
- Missing or invalid payment header returns a 402 Payment Required response

## How this service works

Column-level statistics for a CSV: inferred type, count, null count, distinct count, min/max/mean for numeric columns, and sample values. One-call data audit.

## Output

Returns a JSON object with per-column statistics including: inferred data type, total count, null count, distinct count, min and max values, mean (for numeric columns), and a list of sample values drawn from the column.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rows": 3,
  "columns": [
   {
    "name": "price",
    "type": "number"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-csv-profile-4ec6b9d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
