# Text Statistics & Word Count Analyzer

> Text Statistics & Word Count Analyzer is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.0022/call, status unknown (last checked 2026-09-13).

Analyzes a text string and returns word count, character count, line count, paragraph count, sentence count, characters without spaces, and estimated reading time.

## Facts

- Endpoint: GET https://api.x402node.dev/text/stats
- Price: $0.0022/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-3b4b0f13
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tDAJUA7jfDvSKBLyD1q4q

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 api-x402node-dev-3b4b0f13
```

Example prompt: Can you count the words, characters, sentences, paragraphs, and estimated reading time for this article draft: 'The quick brown fox jumps over the lazy dog. It was a sunny afternoon and the animals played freely in the meadow. The fox was particularly agile that day.'

## When to prefer this

Use this endpoint when you need a quick, structured breakdown of text metrics — word count, character count, reading time, and structural counts (sentences, paragraphs, lines) — all in a single call. Ideal for content pipelines, SEO tools, editors enforcing length limits, or any workflow needing readability metrics without setting up a local NLP library.

## Known failure modes

- Empty or missing text body may return a 400 error or zero counts
- Extremely large text payloads may time out or be rejected
- Non-UTF-8 encoded text may cause parsing issues
- Payment failure (402) if USDC balance is insufficient for the $0.0022 per-call fee

## How this service works

Text statistics, word count, character count, line counter, text analyzer, reading time estimate, paragraph counter, sentence counter, text length, wordcount API, count words in text. Get word/char/line/paragraph/sentence count and reading time estimate. Accepts payment on Base or Solana — either network works.

## Output

Returns a JSON object with: chars (total character count), chars_no_spaces (character count excluding spaces), words (word count), lines (line count), sentences (sentence count), paragraphs (paragraph count), and reading_time_min (estimated reading time in minutes as a decimal number).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Input text (required)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-3b4b0f13/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
