Skip to content

a827681306/texttoolkit-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TextToolkit API

Multi-purpose text analysis API for RapidAPI. Zero external NLP dependencies — fast, lightweight, and self-contained.

Features

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

Quick Start

npm install
npm start

Server runs on http://localhost:3000.

Usage

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
}

Full Analysis

curl -X POST http://localhost:3000/analyze \
  -H "Content-Type: application/json" \
  -d '{"text": "Your long text here...", "sentences": 3, "keyword_limit": 10}'

Summarize with custom sentence count

curl -X POST http://localhost:3000/summarize \
  -H "Content-Type: application/json" \
  -d '{"text": "Your long article...", "sentences": 5}'

Deploy on Render

  1. Push this repo to GitHub
  2. Create a new Web Service on render.com
  3. Connect your GitHub repo
  4. Build command: npm install
  5. Start command: node index.js
  6. Environment: Node

RapidAPI Publishing

  1. Go to rapidapi.com/provider
  2. Click "Add New API" → REST
  3. Base URL: your Render deployment URL
  4. Add each endpoint (see table above)
  5. Set pricing plans (see below)

Suggested Pricing

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

License

MIT

About

Multi-purpose text analysis API for RapidAPI - sentiment, summarization, keywords, language detection, readability

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors