Text Analysis Toolkit API
Word count & reading time, readability scores, keyword extraction, sentiment, summarization, language detection, entity extraction, slugs & more.
Get a free API key on RapidAPI Try it in the playgroundText Analysis Toolkit API
Everything you keep re-implementing for text — computed on the edge in milliseconds, with no AI token costs and no data retention.
📊 Measure
- Stats: characters, words, sentences, paragraphs, unique words, reading and speaking time
- Readability: Flesch Reading Ease, Flesch-Kincaid, Gunning Fog, SMOG, Coleman-Liau, ARI, plus the longest sentences to fix
🧠 Understand
- Keywords & keyphrases (RAKE) with density — great for SEO
- Sentiment: positive / neutral / negative with a score, per sentence too
- Summarize: pick the N most important sentences
- Language detection for 18 languages
- Compare two texts: cosine and Jaccard similarity, shared phrases, edit distance
🧰 Extract & transform
- Extract emails, URLs, domains, phone numbers, hashtags, mentions, IPs, dates and money amounts
- Transform: URL slug, camelCase / snake_case / kebab-case / Title Case, ASCII transliteration, Base64 and more
Every endpoint accepts GET ?text= or POST {"text": …} up to 100,000 characters.
Use cases: CMS and blogging tools · SEO analyzers · review and feedback analysis · chat moderation pre-filters · data cleaning pipelines · no-code automations
Keywords: text analysis api, word counter api, readability score, flesch kincaid, keyword extraction api, sentiment analysis api, text summarization api, language detection api, slug generator, text similarity, extract emails
Endpoints (9)
| Endpoint | What it returns |
|---|---|
GET/stats | Text statistics Characters, words, unique words, sentences, paragraphs, average lengths, longest word, reading time, speaking time and detected language. |
GET/readability | Readability scores Flesch Reading Ease with a plain-language level, Flesch-Kincaid grade, Gunning Fog, SMOG, Coleman-Liau, ARI, the average grade level and the longest sentences. |
GET/keywords | Keyword extraction Key phrases ranked with the RAKE algorithm, and the most frequent single words with density — useful for SEO and tagging. |
GET/sentiment | Sentiment analysis Overall sentiment (positive, neutral, negative) with a score from -1 to 1, the words that drove it, and a per-sentence breakdown. |
POST/summarize | Summarize text Extractive summary: returns the N most important sentences in their original order, with the compression ratio. Also available as GET ?text=&sentences=. |
GET/language | Detect language Detect the language of a text among 18 languages, with confidence and alternative candidates. |
GET/compare | Compare two texts Similarity between two texts: cosine and Jaccard similarity, percentage of shared 3-word phrases, Levenshtein distance (texts up to 2,000 characters) and the words unique to each. |
GET/extract | Extract entities Pull emails, URLs and their domains, phone numbers, hashtags, @mentions, IP addresses, dates and money amounts out of free text. |
GET/transform | Slug & case conversion Convert a text to a URL slug, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, sentence case, ASCII transliteration, Base64 and URL-encoded forms. |
Quick start
Subscribe on RapidAPI (free plan available), copy your key, and call GET /stats:
curl --request GET \
--url 'https://text-analysis-toolkit-api1.p.rapidapi.com/stats?text=The+quick+brown+fox+jumps+over+the+lazy+dog.+It+was+a+bright+cold+day+in+April%2C+and+the+clocks+were+striking+thirteen.' \
--header 'x-rapidapi-host: text-analysis-toolkit-api1.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'import requests
url = "https://text-analysis-toolkit-api1.p.rapidapi.com/stats?text=The+quick+brown+fox+jumps+over+the+lazy+dog.+It+was+a+bright+cold+day+in+April%2C+and+the+clocks+were+striking+thirteen."
headers = {
"x-rapidapi-host": "text-analysis-toolkit-api1.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
}
resp = requests.get(url, headers=headers)
print(resp.json())const res = await fetch("https://text-analysis-toolkit-api1.p.rapidapi.com/stats?text=The+quick+brown+fox+jumps+over+the+lazy+dog.+It+was+a+bright+cold+day+in+April%2C+and+the+clocks+were+striking+thirteen.", {
method: "GET",
headers: {
"x-rapidapi-host": "text-analysis-toolkit-api1.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
});
console.log(await res.json());
Example response
{
"characters": 118,
"characters_no_spaces": 96,
"letters": 93,
"digits": 0,
"words": 23,
"unique_words": 21,
"lexical_diversity": 0.913,
"sentences": 2,
"paragraphs": 1,
"lines": 1,
"average_word_length": 4.04,
"average_sentence_length_words": 11.5,
"longest_word": "striking",
"reading_time_minutes": 0.1,
"speaking_time_minutes": 0.15,
"reading_time_text": "1 min read",
"bytes_utf8": 118,
"language": {
"language": "en",
"confidence": 0.59,
"language_name": "English"
}
}
Start free. Every plan includes all endpoints; upgrade only when you need more requests. Runs on Cloudflare's global network for low latency worldwide.
Subscribe on RapidAPI