Pricing
from $1.00 / 1,000 results
Go to Apify Store
Word & Character Counter
A simple tool to count words in text or from a webpage URL. Provides total word count, unique words, and word frequency analysis. Perfect for content analysis, SEO, or text analytics.
Pricing
from $1.00 / 1,000 results
Rating
0.0
(0)
Developer
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 months ago
Last modified
Categories
Share
๐ Word Counter
A simple tool to count words in text or from a webpage URL. Provides total word count, unique words, and word frequency analysis. Perfect for content analysis, SEO, or text analytics.
๐ Features
- Count total words in any text
- Count unique words
- Generate word frequency lists
- Analyze text input or fetch text from a URL
- JSON output for easy integration into automation workflows
๐ฅ Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
text | string | โ No | "" | Text to count words from. Can be empty if url is provided. |
url | string | โ No | "" | URL to fetch text from for word counting. Can be empty if text is provided. |
topKeywords | integer | โ No | 10 | Optional: Number of most frequent words to return. Defaults to 10. |
โ๏ธ How It Works
-
Text Input
- Analyzes the provided
textand counts total and unique words. - Generates a frequency list of the most common words.
- Analyzes the provided
-
URL Input
- Fetches page content from the provided
urland performs the same word counting analysis.
- Fetches page content from the provided
-
Top Words
- Returns a list of the
topKeywordsmost frequent words if requested.
- Returns a list of the
๐งฎ Example
Input (Text)
{"text":"Apify is a platform for web scraping, automation, and data extraction. Apify allows building actors to automate tasks.","topKeywords":5}
Output
{"totalWords":17,"uniqueWords":15,"topWords":[{"word":"Apify","count":2},{"word":"automation","count":1},{"word":"actors","count":1},{"word":"platform","count":1},{"word":"tasks","count":1}]}
Input (URL)
{"url":"https://apify.com/docs","topKeywords":10}
Output
{"totalWords":1200,"uniqueWords":650,"topWords":[{"word":"Apify","count":50},{"word":"actors","count":35},{"word":"platform","count":25},...]}
๐๏ธ Use Cases
- Content analysis for blogs, articles, and websites
- SEO optimization and readability assessment
- Generating word frequency statistics for research or reporting
- Automation workflows for text analytics pipelines
โก Notes
- Either
textorurlmust be provided. If both are given,texttakes priority. topKeywordscontrols how many of the most frequent words are returned. Default is 10.- Output includes total words, unique words, and a frequency list.
๐ License
MIT License
