Emotion Analysis API — Detect Sentiment & Personality
All-in-one NLP API for emotion detection, sentiment analysis, Big Five personality traits, and communication style analysis. Replace 4 separate APIs with a single subscription — powered by advanced AI models.
Features
Emotion Detection
Classify text into 6 core emotions — joy, sadness, anger, fear, love, surprise — with confidence scores.
Sentiment Analysis
Detect positive, negative, or neutral sentiment with detailed polarity score breakdown.
Big Five Personality
Predict OCEAN personality traits (Openness, Conscientiousness, Extraversion, Agreeableness, Neuroticism) from text.
Communication Style
Identify tone, formality level, and communication intent for user profiling and chatbot personalization.
4-in-1 API
Replace 4 separate APIs with one unified subscription. Save time, cost, and integration effort.
Flexible Input
Send text via JSON, form-encoded, or multipart. Supports 3–5000 characters per request.
API Reference
4 endpoints, simple integration. Here's everything you need.
Supported Content Types
https://emotion-sentiment-personality-analysis.p.rapidapi.com/emotionsClassify text into 6 core emotions (joy, sadness, anger, fear, love, surprise) with confidence scores based on Ekman's model.
textstringrequiredThe text to analyze (3–5000 characters).
{
"emotions": [
{ "label": "joy", "score": 0.9 },
{ "label": "surprise", "score": 0.1 },
{ "label": "love", "score": 0.0 },
{ "label": "sadness", "score": 0.0 },
{ "label": "anger", "score": 0.0 },
{ "label": "fear", "score": 0.0 }
]
}https://emotion-sentiment-personality-analysis.p.rapidapi.com/sentimentDetermine positive, negative, or neutral sentiment with detailed polarity scores.
textstringrequiredThe text to analyze (3–5000 characters).
{
"sentiment": { "label": "negative", "score": 0.85 },
"scores": { "positive": 0.2, "neutral": 0.1, "negative": 0.7 }
}https://emotion-sentiment-personality-analysis.p.rapidapi.com/personalityPredict Big Five (OCEAN) personality traits — Openness, Conscientiousness, Extraversion, Agreeableness, and Neuroticism — each scored from 0.0 to 1.0.
textstringrequiredThe text to analyze (3–5000 characters).
{
"personality": {
"openness": 0.7,
"conscientiousness": 0.9,
"extraversion": 0.8,
"agreeableness": 0.6,
"neuroticism": 0.3
}
}https://emotion-sentiment-personality-analysis.p.rapidapi.com/communicationAnalyze communication style including intent, tone (assertive, collaborative, empathetic, analytical, casual), and formality level (formal, neutral, informal).
textstringrequiredThe text to analyze (3–5000 characters).
{
"style": "fact-oriented",
"confidence": 0.9,
"formality": "formal",
"tone": "collaborative"
}Response
Each endpoint returns structured JSON with analysis results. Emotion detection returns 6 emotion scores, sentiment returns polarity breakdown, personality returns OCEAN trait scores, and communication returns style/tone/formality labels.
Quick Start
Copy-paste code to get started in seconds. Replace YOUR_API_KEY with your RapidAPI key.
# Emotion Detection
curl -X POST "https://emotion-sentiment-personality-analysis.p.rapidapi.com/emotions" \
-H "x-rapidapi-key: YOUR_API_KEY" \
-H "x-rapidapi-host: emotion-sentiment-personality-analysis.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{"text": "I just got promoted, this is the best day of my life!"}'
# Sentiment Analysis
curl -X POST "https://emotion-sentiment-personality-analysis.p.rapidapi.com/sentiment" \
-H "x-rapidapi-key: YOUR_API_KEY" \
-H "x-rapidapi-host: emotion-sentiment-personality-analysis.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{"text": "The product quality is terrible and support was unhelpful."}'
# Big Five Personality
curl -X POST "https://emotion-sentiment-personality-analysis.p.rapidapi.com/personality" \
-H "x-rapidapi-key: YOUR_API_KEY" \
-H "x-rapidapi-host: emotion-sentiment-personality-analysis.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{"text": "I love meeting new people and organizing group activities."}'Pricing
Start free, scale as you grow. All plans include full API access with no credit card required for the free tier.
Basic
100 requests/mo
- Full API access
- All endpoints
- Standard support
Pro
10,000 requests/mo
- Full API access
- All endpoints
- Standard support
Ultra
50,000 requests/mo
- Full API access
- All endpoints
- Standard support
Mega
200,000 requests/mo
- Full API access
- All endpoints
- Standard support
Frequently Asked Questions
- What emotions can the emotion detection API identify from text?
- The emotion detection API classifies text into six core emotions based on Ekman's model: joy, sadness, anger, fear, love, and surprise. Each emotion is returned with a confidence score, allowing you to understand the emotional tone of customer reviews, social media posts, and user feedback.
- How is sentiment analysis different from emotion detection?
- Sentiment analysis determines whether text is positive, negative, or neutral with a polarity score breakdown. Emotion detection goes deeper by identifying specific emotions like joy, anger, or fear. Both endpoints are included in this single API subscription for comprehensive text analysis.
- Can this API predict personality traits from text?
- Yes. The Big Five personality endpoint predicts OCEAN personality traits (Openness, Conscientiousness, Extraversion, Agreeableness, and Neuroticism) from text, each scored from 0.0 to 1.0. This is useful for user profiling, chatbot personalization, and audience segmentation.
Tutorials & Guides
Learn how to integrate this API with step-by-step tutorials and real-world use cases.
Start Using Emotion & Personality Analysis Today
Sign up on RapidAPI to get your API key. The free tier includes generous monthly requests — no credit card required.
