Word Frequency Analyser
Count the most common words in any text with configurable stop-word filtering
/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
{
"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
Description
How to Use
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
- Tag cloud generation — Extract the most common terms from an article and render a visual tag cloud
- Keyword extraction — Identify dominant topics in a document without an LLM
- Content auditing — Verify that target keywords appear with the right density in SEO content
- Survey analysis — Surface the most common themes in open-ended survey responses
Start using Word Frequency Analyser now
Get your free API key and make your first request in under a minute.