# 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-14).

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

## Facts

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

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-e5add4b8 -d '<json body>'
```

Example prompt: Can you profile my CSV and tell me the data type, null count, distinct count, and min/max/mean for each column, plus a few sample values? Here's the CSV content: [paste CSV here].

## When to prefer this

Use this endpoint when you need a fast, one-call summary of a CSV file's structure and data quality — especially before ETL pipelines, ML training, or data validation workflows. It's ideal when you want column-level profiling without standing up a full data warehouse or pandas environment. Prefer this over manual inspection or generic code execution when you need structured, machine-readable statistics quickly.

## Known failure modes

- Malformed or unparseable CSV returns an error
- Empty CSV or CSV with no rows returns minimal stats
- Very large CSV may time out or exceed payload limits
- Columns with all-null values may have limited statistics
- Ambiguous types (e.g. mixed numeric/string) may result in 'string' inference

## 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 per-column statistics including inferred data type (string, integer, float, boolean, date, etc.), total count, null count, distinct count, and for numeric columns: min, max, and mean values, plus 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-e5add4b8/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)
