# x402 Utility Tools – Text Stats

> x402 Utility Tools – Text Stats is a paid API for AI agents from x402-utils.558686.xyz, paid per call via x402, $0.0001/call, status down (last checked 2026-10-25).

Computes character, word, line, byte counts, and estimated reading time for a given input string

## Facts

- Endpoint: POST https://x402-utils.558686.xyz/v1/tools/text-stats?utm_source=zero.xyz
- Price: $0.0001/call
- Payment: x402
- Status: down
- Last checked: 2026-10-25
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-utility-tools-text-stats-ca85fb02
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SwZQPOP8J6ZOmXziG7zp4

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 x402-utility-tools-text-stats-ca85fb02 -d '<json body>'
```

Example prompt: Can you tell me the word count, character count, line count, and estimated reading time for this text: 'The quick brown fox jumps over the lazy dog. It was a sunny afternoon.'?

## When to prefer this

Choose this endpoint when you need fast, cheap, deterministic text metrics (word count, character count, byte size, line count, reading time) without the cost or latency of an LLM. Ideal for content pipelines, form validation, editorial tools, or any workflow where text measurement is a high-frequency, low-cost preprocessing step.

## Known failure modes

- Missing or empty 'text' field returns an error response
- Extremely large text payloads may be rejected or time out
- Non-string values for 'text' may cause validation errors
- Network or payment authorization failures return HTTP 402

## How this service works

A compact x402 utility surface for agents that need cheap, repeatable non-LLM transformations before spending on heavier routes: CSV cleanup, JSON Schema checks, timestamp conversion, JWT decode, URL normalization, hashes, codecs, and text utilities.

## Output

Returns a JSON object with ok=true, the tool name, the original input, and a result object containing byte count, line array, word count, character count, and estimated reading time in minutes. All fields are deterministically computed with no LLM involvement.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "text-stats",
  "input": {
   "text": "one two\nthree"
  },
  "route": "/v1/tools/text-stats",
  "result": {
   "bytes": 1,
   "lines": [],
   "words": "words_example",
   "characters": "characters_example",
   "readingTimeMinutes": 1
  },
  "project": "x402-utility-tools",
  "deterministic": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-utility-tools-text-stats-ca85fb02/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-utils.558686.xyz](https://www.zero.xyz/host/x402-utils.558686.xyz/llms.txt)
