Text Analysis API
FreemiumSentiment, keywords, extractive summaries, readability scores and text statistics for English text — one simple JSON call each.
Documentation
Sentiment, keywords, extractive summaries, readability scores and text statistics for English text.
What you get
- Sentiment — positive / neutral / negative with a score, overall and per sentence
- Keywords — the key phrases of a document, with a relevance score
- Summaries — the most important sentences, in their original order
- Readability — Flesch reading ease, Flesch-Kincaid grade, Gunning Fog, plus reading and speaking time
- Statistics — characters, words, sentences, paragraphs, top words, and any emails, URLs, hashtags and mentions
Great for product reviews, support tickets, social media monitoring, SEO tools, content editors and e-learning.
Quick start
Subscribe to a plan (the Basic plan is free), then call the API at https://text-analysis.p.apihiver.com with your key in the X-API-Key header:
curl -X POST "https://text-analysis.p.apihiver.com/v1/sentiment" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "I love this product, it is great!"}'Endpoints
| Method | Path | What it does |
|---|---|---|
POST | /v1/sentiment | Sentiment of a text (overall and per sentence) |
POST | /v1/keywords | Extract the key words and phrases from a text |
POST | /v1/summarize | Extractive summary — the most representative sentences |
POST | /v1/readability | Readability scores (Flesch reading ease, grade level) and reading time |
POST | /v1/stats | Text statistics: words, sentences, characters, top words, entities like emails/URLs |
Open the Endpoints tab to see every parameter, example request and example response, and to try the API live.
Errors
Every error is JSON with the same shape:
{"error": {"code": "INVALID_INPUT", "message": "text: Field required"}}| HTTP | Code | Meaning |
|---|---|---|
| 400 | INVALID_INPUT | A parameter is missing or has the wrong format — the message says which |
| 401 | UNAUTHORIZED | Missing or invalid X-API-Key |
| 429 | — | Plan quota or rate limit reached (see the X-RateLimit-* headers) |
| 502 / 503 / 504 | — | A data source or the API server is temporarily unavailable — retry after a few seconds |
Data & privacy
Data comes from VADER sentiment and YAKE keyword extraction, computed on our servers — your text isn't sent to any third party.
Text Analysis API FAQ
- Is the Text Analysis API free?
- Yes. The Basic plan is free and includes 500 requests per month — no card needed. Paid plans start at ₹299 per month for 10,000 requests.
- How much does the Text Analysis API cost?
- Basic: free for 500 requests; Pro: ₹299/month for 10,000 requests; Ultra: ₹999/month for 50,000 requests; Mega: ₹2,499/month for 2,00,000 requests. Billing is monthly and you can cancel any time.
- How do I use the Text Analysis API?
- Subscribe to a plan on APIHiver, create an API key in the Console, then send requests to https://text-analysis.p.apihiver.com with your key in the X-API-Key header. You can also try every endpoint in the browser playground first.
- What endpoints does the Text Analysis API have?
- It has 5 endpoints: Sentiment of a text (overall and per sentence) (POST /v1/sentiment); Extract the key words and phrases from a text (POST /v1/keywords); Extractive summary — the most representative sentences (POST /v1/summarize); Readability scores (Flesch reading ease, grade level) and reading time (POST /v1/readability); Text statistics: words, sentences, characters, top words, entities like emails/URLs (POST /v1/stats).
- What are the Text Analysis API rate limits?
- Basic: 2 requests per second; Pro: 5 requests per second; Ultra: 10 requests per second; Mega: 20 requests per second. Monthly quotas depend on the plan; every response includes X-RateLimit headers showing what's left.
- Can I use one API key for the Text Analysis API and other APIs?
- Yes. One APIHiver key works for every API you subscribe to, so you don't need a separate account or key per provider.
Endpoints
5 endpoints — full list is in the sidebar on larger screens.