Word & Character Counter avatar

Word & Character Counter

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Word & Character Counter

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

Jamshaid Arif

Jamshaid Arif

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

16 hours ago

Last modified

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

FieldTypeRequiredDefaultDescription
textstring❌ No""Text to count words from. Can be empty if url is provided.
urlstring❌ No""URL to fetch text from for word counting. Can be empty if text is provided.
topKeywordsinteger❌ No10Optional: Number of most frequent words to return. Defaults to 10.

⚙️ How It Works

  1. Text Input

    • Analyzes the provided text and counts total and unique words.
    • Generates a frequency list of the most common words.
  2. URL Input

    • Fetches page content from the provided url and performs the same word counting analysis.
  3. Top Words

    • Returns a list of the topKeywords most frequent words if requested.

🧮 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 text or url must be provided. If both are given, text takes priority.
  • topKeywords controls 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