# 24K Labs Text Statistics API

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

Analyzes a text string and returns character, word, sentence, and paragraph counts, average word length, and estimated reading time.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/text-stats
- Price: $0.001/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-text-statistics-api-e1d3b696
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_msdi9MViHgMDbxHD_Y7Qg

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-text-statistics-api-e1d3b696 -d '<json body>'
```

Example prompt: Can you give me the full text stats for this article — word count, character count, sentence and paragraph counts, average word length, and estimated reading time?

## When to prefer this

Use this endpoint when you need fast, structured text metrics — word count, character count, sentence/paragraph counts, and reading time — without needing full NLP analysis like sentiment or entity extraction. It is ideal for content editors, SEO tools, and writing assistants that need lightweight, quantitative text statistics at low cost ($0.001 per call).

## Known failure modes

- Empty or missing text body returns an error
- Extremely large text payloads may time out or be rejected
- Non-UTF-8 encoded text may cause parsing errors
- Network or payment authorization failure results in no response

## How this service works

Character, word, sentence, paragraph counts, average word length, and reading time.

## Output

A JSON object containing: total character count, total word count, sentence count, paragraph count, average word length (in characters), and estimated reading time (typically in minutes or seconds). All metrics are derived from the submitted text string.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "words": 6,
  "characters": 28
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-text-statistics-api-e1d3b696/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)
