📊

Word Frequency Analyser

Count the most common words in any text with configurable stop-word filtering

POST 1 credit /v1/text/word-frequency
curl -X POST "https://textanalysis.toolkitapi.io/v1/text/word-frequency" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "The quick brown fox jumps over the lazy dog.", "top_n": 5}'
import httpx

resp = httpx.post(
    "https://textanalysis.toolkitapi.io/v1/text/word-frequency",
    json={"text": "The quick brown fox jumps over the lazy dog.", "top_n": 5},
)
print(resp.json())
const resp = await fetch("https://textanalysis.toolkitapi.io/v1/text/word-frequency", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"text": "The quick brown fox jumps over the lazy dog.", "top_n": 5}),
});
const data = await resp.json();
console.log(data);
# See curl example
Response 200 OK
{
  "total_words": 9,
  "unique_words": 8,
  "top_n": 5,
  "frequencies": [
    {"word": "quick", "count": 1},
    {"word": "brown", "count": 1},
    {"word": "fox",   "count": 1},
    {"word": "jumps", "count": 1},
    {"word": "lazy",  "count": 1}
  ]
}

Try It Live

Live Demo

Description

Count the most common words in any text with configurable stop-word filtering

How to Use

1

1. Send a POST request to `/v1/text/word-frequency` with the `text` field. 2. Use `top_n` to limit the number of results returned (default: 20). 3. Set `include_stop_words: true` to disable stop-word filtering if needed. 4. The `frequencies` array is sorted by count descending. Use it to drive tag cloud weights or keyword lists.

About This Tool

The Word Frequency endpoint analyses text and returns the most common words sorted by frequency. Common English stop words (articles, prepositions, conjunctions) are filtered by default, ensuring results highlight meaningful terms rather than noise.

Useful for keyword extraction, tag cloud generation, and topic profiling — without needing an LLM.

Why Use This Tool

Start using Word Frequency Analyser now

Get your free API key and make your first request in under a minute.