RapidAPI logo

Sign Up

Log In

GetSentiment

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

GetSentiment API Overview

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

Contact API Provider
star-blueRate
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