RapidAPI logo

Text To Emotions

PAID
By Qemotion
Updated 4 months ago
Data
-/10
Popularity Score
-
Latency
-
Success Rate

Text To Emotions API Documentation

Discover the emotions expressed by the audience into their tweets, comments or chats and build rules, priority lists and alerts based on the emotions expressed.

Qemotion is editing the most complete api to detect not only sentiment (positive/negative) but also qualitative analytics like the real emotions expressed into texts.

Among other analytics, we’re automatically detecting:

Emotional e-index © Qemotion France SAS Main Primary emotions by sentence Primary emotions intensity and breakdown (Happiness, Surprise, Sadness, Fear, Anger, Disgust) Speech engagement © Qemotion France SAS including Personal commitment, Time orientation, etc. Sensations (Taste, Smell, Sight, Touch, Suffering, etc.) - *BETA Mode Other emotional KPI (Valence, arousal, Dominance) Thematics & Topics of the speech (= Emotional triggers) English and French are currently available and 30 other spoken idiomas will be available soon.

  • Please contact us if interested to get more details

The public API is free but limited. test can be easily with mashape. Do not hesitate to send us an email to api@qemotion.com if you want to get an access. We will reply you in minutes and it’s free for limited volumes and non business purposes.

View API Details
GETget_emotions
GETget_emotions
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Content-TypeSTRING
REQUIREDContent type
AuthorizationSTRING
REQUIRED
langSTRING
REQUIREDSelect your Idioma
textSTRING
REQUIREDType/Send here your text. We will extract emotions!
Code Snippet
unirest.get("https://qemotion.p.rapidapi.com/v1/emotional_analysis/get_emotions")
.header("X-RapidAPI-Host", "qemotion.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json; charset=UTF-8")
.header("Authorization", "Token token="bc55ca0a8f5c8c41556f499a93f7077a"")
.header("lang", "en")
.header("text", "What a beautiful day today!")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://qemotion.p.rapidapi.com/v1/emotional_analysis/get_emotions
Request Method: GET
Response Headers
Response Body
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://qemotion.p.rapidapi.com/v1/emotional_analysis/get_emotions")
.header("X-RapidAPI-Host", "qemotion.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json; charset=UTF-8")
.header("Authorization", "Token token="bc55ca0a8f5c8c41556f499a93f7077a"")
.header("lang", "en")
.header("text", "What a beautiful day today!")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication