# Word Count & Text Statistics

> Word Count & Text Statistics is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns word, character, sentence, paragraph, and unique-word counts for input text, plus average word length and the longest word.

## Facts

- Endpoint: GET https://intel.rallylive.ca/data/word-count
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/word-count-text-statistics-a9b99fde
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vWhKS8PQJ50rbYd6PV0CA

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 word-count-text-statistics-a9b99fde
```

Example prompt: Can you count the words, sentences, paragraphs, and unique words in this text and also tell me the longest word and average word length? Here's the text: 'The quick brown fox jumps over the lazy dog. It was a bright and sunny day.'

## When to prefer this

Choose this endpoint when you need a comprehensive set of text statistics in a single call — word, character, sentence, paragraph, and unique-word counts plus lexical metrics — rather than calling separate tools for each metric. Ideal for lightweight content auditing, SEO checks, writing tool pipelines, or any agent workflow that needs to validate or report on text length and complexity without spinning up a heavy NLP model.

## Known failure modes

- Empty or missing input text returns an error or zero counts
- Extremely long texts may time out or hit payload size limits
- Non-textual or binary input may return unexpected results
- Input with no recognizable sentence boundaries may return a sentence count of 0 or 1

## How this service works

Word, character, sentence, paragraph and unique-word counts for text, plus average word length and the longest word. $0.01 per call.

## Output

A structured object containing: total word count, total character count (likely with and/or without spaces), sentence count, paragraph count, unique word count, average word length, and the longest word found in the input text.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/word-count-text-statistics-a9b99fde/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
