Multi-purpose text analysis API for RapidAPI. Zero external NLP dependencies — fast, lightweight, and self-contained.
| Endpoint | Method | Description |
|---|---|---|
/ |
GET | API info & endpoint list |
/analyze |
POST | Full analysis (all features in one call) |
/sentiment |
POST | Sentiment analysis (positive/negative/neutral) |
/summarize |
POST | Extractive text summarization |
/keywords |
POST | Keyword & key phrase extraction |
/language |
POST | Language detection (15 languages) |
/readability |
POST | Readability scores (Flesch, Kincaid, Coleman-Liau, ARI) |
/stats |
POST | Word count, reading time, character stats |
npm install
npm startServer runs on http://localhost:3000.
All POST endpoints accept JSON body with a text field:
curl -X POST http://localhost:3000/sentiment \
-H "Content-Type: application/json" \
-d '{"text": "This product is absolutely amazing and I love it!"}'Response:
{
"score": 1,
"label": "positive",
"positive_words": 3,
"negative_words": 0,
"confidence": 1
}curl -X POST http://localhost:3000/analyze \
-H "Content-Type: application/json" \
-d '{"text": "Your long text here...", "sentences": 3, "keyword_limit": 10}'curl -X POST http://localhost:3000/summarize \
-H "Content-Type: application/json" \
-d '{"text": "Your long article...", "sentences": 5}'- Push this repo to GitHub
- Create a new Web Service on render.com
- Connect your GitHub repo
- Build command:
npm install - Start command:
node index.js - Environment: Node
- Go to rapidapi.com/provider
- Click "Add New API" → REST
- Base URL: your Render deployment URL
- Add each endpoint (see table above)
- Set pricing plans (see below)
| Plan | Price | Requests/Month | Overage |
|---|---|---|---|
| Basic (Free) | $0.00 | 1,000 | $0.005/req |
| Pro | $9.99 | 100,000 | $0.002/req |
| Ultra | $49.99 | 1,000,000 | $0.001/req |
| Mega | $99.99 | Unlimited | — |
MIT