๐ Emotion Sentiment Analysis API ๐
Effortlessly unlock text insights with AI-powered sentiment and emotion analysis!
Welcome to the Emotion Sentiment Analysis API! This API provides developers with the tools to analyze text for sentiment and emotions, enabling smarter decision-making and improved user experiences.
๐ข Subscribe now on RapidAPI to get started!
โจ API Docs to get started!
๐ฅ Features
-
Sentiment Analysis: Detect whether text is ๐ positive, ๐ neutral, or ๐ negative in 6 languages:
English (en)
,French (fr)
,Spanish (es)
,German (de)
,Portuguese (pt)
, andItalian (it)
. - Emotion Detection: Uncover up to 28 distinct emotions ๐ญ from English text, including joy, anger, love, and more.
- ๐ Fast, Reliable, and Developer-Friendly!
๐ API Endpoints
1. /sentiment
Endpoint
Analyze the sentiment of your input text across 6 languages.
-
Input Parameters:
-
text
(required): The text you want to analyze.
-
-
Supported Languages:
en
,fr
,es
,de
,pt
,it
.
Sentiment Mapping:
Sentiment Code | Sentiment Label |
---|---|
0 |
Negative ๐ |
1 |
Neutral ๐ |
2 |
Positive ๐ |
Sample Request:
GET /sentiment?text=I love this product!
Sample Response:
{
"input_text": "I love this product!",
"predicted_sentiment": "Positive",
"probability_scores": [0.1, 0.2, 0.7],
"predicted_label": "Positive"
}
2. /emotion
Endpoint
Identify up to 28 distinct emotions from English text.
-
Input Parameters:
-
text
(required): The text you want to analyze.
-
Emotion Mapping:
Emotion Code | Emotion Label |
---|---|
0 |
admiration ๐ฅฐ |
1 |
amusement ๐ |
2 |
anger ๐ก |
3 |
annoyance ๐ค |
4 |
approval ๐ |
5 |
caring ๐ค |
6 |
confusion ๐ค |
7 |
curiosity ๐คจ |
8 |
desire ๐ |
9 |
disappointment ๐ |
10 |
disapproval ๐ |
11 |
disgust ๐คฎ |
12 |
embarrassment ๐ณ |
13 |
excitement ๐ |
14 |
fear ๐จ |
15 |
gratitude ๐ |
16 |
grief ๐ข |
17 |
joy ๐ |
18 |
love โค๏ธ |
19 |
nervousness ๐ฌ |
20 |
optimism ๐ |
21 |
pride ๐ |
22 |
realization ๐ค |
23 |
relief ๐ |
24 |
remorse ๐ |
25 |
sadness ๐ญ |
26 |
surprise ๐ฒ |
27 |
neutral ๐ |
Sample Request:
GET /emotion?text=Wow I'm so excited for the weekend!
Sample Response:
{
"input_text": "Wow I'm so excited for the weekend!",
"predicted_emotion": "excitement",
"probability_scores": [0.05, 0.02, 0.9, ...],
"predicted_label": "excitement"
}
๐ป Getting Started
- Subscribe on RapidAPI: Emotion Sentiment Analysis API.
- Use the provided API key to authenticate your requests.
- Start analyzing sentiment and emotions in your text data!
๐ค Contributing
We welcome contributions! If you have suggestions or feature requests, feel free to create a pull request or open an issue.
๐ง Contact
For questions, feedback, or support, reach out to us via the RapidAPI platform.
๐ก Let the Emotion Sentiment Analysis API empower your projects today! ๐ก
Top comments (0)