# agent402.tools Word Frequency Analyzer

> agent402.tools Word Frequency 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).

Analyzes text and returns top N words and bigrams ranked by frequency, with stop word filtering and lowercase normalization

## Facts

- Endpoint: POST https://agent402.tools/api/word-frequency
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-word-frequency-analyzer-f652d091
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Iwybx_w8WVTNqccM2SzyY

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-word-frequency-analyzer-f652d091 -d '<json body>'
```

Example prompt: What are the top 15 most frequent words and bigrams in this paragraph? 'Machine learning models require large datasets for training. Large datasets help machine learning improve accuracy. Training datasets must be diverse and large enough to generalize well.'

## When to prefer this

Choose this endpoint when you need fast, lightweight word and bigram frequency extraction from raw text with built-in English stop word filtering and punctuation normalization, without needing a full NLP pipeline or sentiment analysis. Ideal for content analysis, SEO keyword extraction, or summarizing dominant themes in a passage.

## Known failure modes

- Empty text field returns empty frequency lists or validation error
- Very short text may yield sparse or trivial results
- Top N value of 0 or negative may cause an error or return empty list
- Non-English text may not have stop words filtered correctly since filter targets English stop words
- Extremely long text may cause timeout or payload size rejection

## How this service works

Top N words and bigrams from text. Lowercase, strip punctuation, filter common English stop words. Returns sorted word and bigram frequency lists.

## Output

Returns two sorted frequency lists: one for individual words and one for bigrams (two-word pairs), both filtered for common English stop words, lowercased, and stripped of punctuation, ranked from most to least frequent up to the requested top N limit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "top": {
   "type": "number",
   "description": "Number of top results (default 10)"
  },
  "text": {
   "type": "string",
   "description": "Text to analyze"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "words": [
   {
    "word": "fox",
    "count": 2
   },
   {
    "word": "dog",
    "count": 2
   }
  ],
  "bigrams": [
   {
    "count": 1,
    "bigram": "quick brown"
   }
  ],
  "totalWords": 16,
  "uniqueWords": 9
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-word-frequency-analyzer-f652d091/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)
