Welcome to the Emotion Analysis API, an advanced tool for detecting and analyzing emotions in textual data. This document provides detailed instructions on how to use the API.
https://emotion-analysis5.p.rapidapi.com/api/rp/text-emotion-analysis/index.php
POST
{
"q": "I am feeling very happy today!"
}
The API response is in JSON format, consisting of a status code, data containing emotions detected and their respective scores, and a response code.
{
"status": 1,
"data": {
"emotions_detected": ["joy"],
"emotion_scores": {
"joy": 0.03846585659527888,
"sadness": 0.007958042261309573,
"disgust": 0,
"anger": 0,
"surprise": 0,
"fear": 0
}
},
"code": 200
}