RapidAPI logo

Sign Up

Log In

GetSentiment

FREEMIUM
By getsentiment
Updated 3 months ago
Tools
-/10
Popularity Score
-
Latency
-
Success Rate

GetSentiment API Documentation

High-accuracy customizable sentiment analysis, keyword extraction, topic categorization and intention detection

View API Details
POSTEndpoint
POSTEndpoint

The main endpoint

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
textSTRING
REQUIREDText to be analyzed (max 10,000 characters)
Optional Parameters
categoriesNUMBER
OPTIONALIf categories should be recognized (1 for true, 0 for false), default 0.
domainSTRING
OPTIONALDomain (retail, hospitality, electronics, telecom, automotive or null); default null.
sentimentNUMBER
OPTIONALIf sentiment should be recognized (1 for true, 0 for false), default 0.
annotateNUMBER
OPTIONALIf XML-annotated original text should be output (1 for true, 0 for false), default 0.
termsNUMBER
OPTIONALIf keywords should be recognized (1 for true, 0 for false), default 1.
intentionsNUMBER
OPTIONALIf customer intentions to buy or quit should be recognized, default 0.
Request Snippet
unirest.post("https://getsentiment.p.rapidapi.com/")
.header("X-RapidAPI-Host", "getsentiment.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("categories=1")
.send("domain=hospitality")
.send("sentiment=1")
.send("annotate=1")
.send("terms=1")
.send("intentions=0")
.send("text=The food was great, but the service was slow.")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
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.post("https://getsentiment.p.rapidapi.com/")
.header("X-RapidAPI-Host", "getsentiment.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("categories=1")
.send("domain=hospitality")
.send("sentiment=1")
.send("annotate=1")
.send("terms=1")
.send("intentions=0")
.send("text=The food was great, but the service was slow.")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication