# agent402.tools Text Statistics Analyzer

> agent402.tools Text Statistics Analyzer is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14, last successful call 2026-07-29).

Analyzes a block of text and returns character count, word count, sentence count, paragraph count, average word length, reading time, and an LLM token estimate.

## Facts

- Endpoint: POST https://agent402.tools/api/text-stats
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Last successful call: 2026-07-29
- Success rate: 100% of calls made through Zero
- Rating: 4.7 / 5 from 1 review
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-text-statistics-analyzer-0bf811bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_74t3WqWqBwetbzBVXFaqA

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 agent402-tools-text-statistics-analyzer-0bf811bb -d '<json body>'
```

Example prompt: Can you analyze this article text and tell me the word count, character count, number of sentences and paragraphs, average word length, estimated reading time, and how many LLM tokens it would use? Here's the text: [paste text here]

## When to prefer this

Use this endpoint when you need a quick, low-cost breakdown of text statistics including LLM token estimates — especially useful before sending large texts to LLM APIs to estimate cost, or when validating document length against limits. Prefer this over manual counting or client-side estimation when accuracy and token estimation matter.

## Known failure modes

- Text exceeds 500KB limit — request rejected
- Empty text field — returns zero or error
- Malformed JSON body — 400 error
- Payment not included or insufficient — 402 Payment Required

## How this service works

Characters, words, sentences, paragraphs, average word length, reading time, and an LLM token estimate for any text.

## Output

Returns a JSON object with character count, word count, sentence count, paragraph count, average word length, estimated reading time (likely in minutes), and an estimated LLM token count for the submitted text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Text to analyze (max 500KB)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "words": 65,
  "sentences": 4,
  "characters": 386,
  "paragraphs": 1,
  "avgWordLength": 4.95,
  "estimatedTokens": 97,
  "readingTimeMinutes": 0.3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-text-statistics-analyzer-0bf811bb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
