Text & Language
Text Statistics API
Count words, characters, sentences, paragraphs, and estimated reading time for any block of text.
Request Headers
| Name | Required | Description |
|---|---|---|
X-RapidAPI-Key | required | Your RapidAPI key. Get one free. |
X-RapidAPI-Host | required | text-stats.p.rapidapi.com |
Endpoints
GET
/v1/text/stats Compute word, character, sentence, paragraph, and reading-time statistics for a text
Parameters
| Name | Type | Required | Default | Constraints |
|---|---|---|---|---|
text | string | required | — | <= 5000 chars; matches \S |
Code Examples
curl --request GET \
--url 'https://text-stats.p.rapidapi.com/v1/text/stats?text=example' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: text-stats.p.rapidapi.com' const url = "https://text-stats.p.rapidapi.com/v1/text/stats?text=example";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "text-stats.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://text-stats.p.rapidapi.com/v1/text/stats"
querystring = {"text": "example"}
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "text-stats.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json()) Interactive Example
$ GET /v1/text/stats?text=Hello world. How are you today? I am fine!
{"words":9,"characters":42,"characters_no_spaces":34,"sentences":3,"paragraphs":1,"reading_time_minutes":1} Subscribe & License
Access this API with commercial-ready tiers on RapidAPI. Flexible plans designed for side-projects, startups, and high-volume production architectures.
Developer Support
Need help integrating or have a custom endpoint request? Our engineering team is here to assist with authentication, payload schemas, and high-frequency rate limit increases.
System Performance
Monitored 24/7 with a 99.9% uptime SLA. Built atop cloud-native microservices with globally distributed edge caching to ensure ultra-low latency response times.
All Systems Operational