# 24K Labs Text Stats API

> 24K Labs Text Stats 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 count, word count, sentence count, paragraph count, average word length, and estimated reading time.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/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-stats-api-fecf0bd8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k68Jk0fnN0KMTWGHkvEhM

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-stats-api-fecf0bd8 -d '<json body>'
```

Example prompt: Can you give me the full text stats for this blog post — word count, character count, sentence and paragraph counts, average word length, and reading time? Here's the text: 'Content marketing is evolving rapidly. Brands that invest in quality writing see measurable results. The data speaks for itself.'

## When to prefer this

Choose this endpoint when you need quick, precise text metrics — especially word count, reading time, and structural breakdown (sentences, paragraphs) — without invoking a full NLP or AI model. It's ideal for content pipelines, CMS integrations, or writing assistants where lightweight, deterministic stats are sufficient and cost matters ($0.001/call via x402).

## Known failure modes

- Empty or missing text body returns an error
- Extremely large text inputs may be rejected or time out
- Non-UTF-8 encoded content may cause parsing errors
- Malformed request body returns a 400-level error

## How this service works

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

## Output

Returns a JSON object with numeric values for character count, word count, sentence count, paragraph count, average word length (likely as a float), and estimated reading time (likely in minutes or seconds). All stats are computed from the submitted text.

## 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-stats-api-fecf0bd8/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)
