# Foundry Word Count & Text Statistics

> Foundry Word Count & Text Statistics is a paid API for AI agents from minty-sprout.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Analyzes any text and returns word count, character count, sentence and paragraph counts, reading/speaking time, average word length, and top words.

## Facts

- Endpoint: POST https://minty-sprout.onrender.com/v1/word-count?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-word-count-text-statistics-42191c35
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uXDcrVQW7pUcsGHRpAo2c

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 foundry-word-count-text-statistics-42191c35 -d '<json body>'
```

Example prompt: Can you analyze this paragraph and tell me the word count, reading time, and top words: 'The quick brown fox jumps over the lazy dog near the river bank every single morning'?

## When to prefer this

Use this endpoint when you need quick, structured text statistics — word count, reading time, and word frequency — without spinning up an NLP pipeline. Ideal for content editors, writing assistants, CMS tools, or any workflow that needs to validate document length or estimate audience reading time. At $0.001 per call it is cost-effective for high-volume document processing.

## Known failure modes

- Input text exceeds 8,000 character limit — request rejected
- Empty or missing input field — may return zeros or an error
- Non-English text may produce inaccurate sentence/paragraph segmentation
- Very short text (1-2 words) may yield trivial or misleading statistics
- Payment failure or insufficient USDC balance — 402 response

## How this service works

Word count and text statistics: words, characters, sentences, paragraphs, reading time, top words. Input: any text.

## Output

Returns a JSON object with: total word count, character count (with and without spaces), sentence count, paragraph count, estimated reading time in seconds, estimated speaking time in seconds, average word length, and a ranked list of the most frequently occurring words with their counts.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 8000,
   "description": "Any text up to 8,000 characters"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "words": 9,
  "sentences": 1,
  "top_words": [
   {
    "word": "quick",
    "count": 1
   },
   {
    "word": "brown",
    "count": 1
   },
   {
    "word": "fox",
    "count": 1
   }
  ],
  "characters": 44,
  "paragraphs": 1,
  "avg_word_length": 3.89,
  "reading_time_sec": 3,
  "speaking_time_sec": 4,
  "characters_no_spaces": 36
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-word-count-text-statistics-42191c35/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minty-sprout.onrender.com](https://www.zero.xyz/host/minty-sprout.onrender.com/llms.txt)
