Word Frequency Counter API
Count how often each word (or two- and three-word phrase) appears in text, with optional English stop-word removal. Returns the top terms with counts and percentages.
POST /api/v1/tools/word-frequency-counterMCP word_frequency_counterText & WritingCount how often every word or two and three word phrase appears in your text, with stop word filtering, minimum length, percentages and CSV export.
Input
Send these as a JSON object. Unknown fields are rejected.
- input
- The text to analyse. (string, required)
- n
- Term size: 1 for single words, 2 for two-word phrases, 3 for three-word phrases. (integer, 1 to 3, default 1)
- caseSensitive
- Count "Apple" and "apple" separately. (boolean, default false)
- removeStopWords
- Leave out common English function words (the, and, of…). (boolean, default false)
- minLength
- Ignore words shorter than this many characters. (integer, 1 to 50, default 1)
- ignoreNumbers
- Leave out terms made only of digits. (boolean, default false)
- sort
- count (most frequent first) or alpha (A–Z). (string, one of count, alpha, default "count")
- limit
- Return at most this many terms. (integer, 1 to 1000, default 50)
curl https://pithlab.com/api/v1/tools/word-frequency-counter \n -H "Authorization: Bearer $PITHLAB_KEY" \n -H "Content-Type: application/json" \n -d '{"input":"The quick fox and the lazy dog. The fox runs.","removeStopWords":true,"limit":3}'