What does the Sentiment Analysis API do?
The Sentiment & Mood Analyzer API evaluates short and long-form text to surface positive, negative, and neutral signals alongside mood-oriented attributes. Use it to prioritize support queues, rank user-generated content, or enrich analytics pipelines without training custom NLP models. Responses are JSON-based and designed for straightforward integration in Node.js, Python, or any HTTP client. A free tier is available on RapidAPI so you can prototype before scaling to production traffic.
Use cases
- Customer support triage based on message tone
- Review and feedback aggregation for e-commerce dashboards
- Social listening workflows with multilingual posts
- Content moderation pre-screening before human review
Code examples
Replace endpoint paths and hosts with the values shown in your RapidAPI subscription dashboard.
cURL
curl -X GET "https://sentiment-mood-analyzer-api2.p.rapidapi.com/analyze" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: sentiment-mood-analyzer-api2.p.rapidapi.com"Node.js (fetch)
const response = await fetch("https://sentiment-mood-analyzer-api2.p.rapidapi.com/analyze", {
headers: {
"X-RapidAPI-Key": process.env.RAPIDAPI_KEY,
"X-RapidAPI-Host": "sentiment-mood-analyzer-api2.p.rapidapi.com"
}
});
const data = await response.json();
console.log(data);Python (requests)
import requests
response = requests.get(
"https://sentiment-mood-analyzer-api2.p.rapidapi.com/analyze",
headers={
"X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
"X-RapidAPI-Host": "sentiment-mood-analyzer-api2.p.rapidapi.com",
},
)
print(response.json())Response schema
{
"sentiment": "positive",
"score": 0.82,
"mood": "enthusiastic",
"language": "en"
}Pricing
Free
Limited monthly requests for prototyping
Pro
Higher quotas and faster rate limits
Enterprise
Custom limits and priority support
Visit RapidAPI for live pricing, rate limits, and plan comparison.
FAQ
Which languages are supported?
The API supports multiple common languages. Test your target locale in the RapidAPI console to confirm coverage for your use case.
Can I analyze batch text?
Send one request per text segment or wrap batching in your application layer. Check RapidAPI plan limits for concurrent throughput.
How is sentiment score calculated?
Scores reflect model-weighted polarity and mood attributes returned in the JSON payload. Treat scores as relative rankings within your dataset.
Is there a free tier?
Subscribe on RapidAPI to obtain your API key. Replace YOUR_RAPIDAPI_KEY with your subscription key.
What authentication is required?
Use your RapidAPI key in the X-RapidAPI-Key header. Never expose production keys in client-side browser code.