RapidAPI logo

RussianSentimentAnalyzer

FREEMIUM
By dmitrykey
Updated 4 days ago
Text Analysis
4.7/10
Popularity Score
187ms
Latency
100%
Success Rate

RussianSentimentAnalyzer API Documentation

RussianSentimentAnalyzer (RSA) is a JSON API based on the technology stack of Insider Solutions company. It is capable of parsing the input text, reconstructing the meaning of messages with typos, like tweets and finding sentiment polarity oriented towards a particular object.

Consider an example:

I like new GalaxyS, but do not enjoy new iPhone.

If there are no objects, the sentiment of this sentence can be detected as NEUTRAL or MIXED. If, however, GalaxyS has been passed in as an object, the sentiment will be POSITIVE. It will be NEGATIVE for iPhone in this particular example.

Currently the API supports Russian language with input texts varying from long formal news posts to informal and short tweets.

Looking for text analytics APIs? Check the full list here: https://www.mashape.com/dmitrykey

View API Details
Polarity
POSTInput text
POSTInput text with client_text_id
POSTArray of input texts
Feedback
POSTClient feedback
Subjectivity
POSTInput text for subjectivity
POSTInput text

Supply text and optionally target objects to annotate sentiment for. Also include clienttextid, if you plan to later submit feedback on it.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
single_json_inputJSON_STRING
REQUIRED
Code Snippet
unirest.post("https://russiansentimentanalyzer.p.rapidapi.com/rsa/sentiment/polarity/json/")
.header("X-RapidAPI-Host", "russiansentimentanalyzer.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"text":"Гиперответственный классный исполнитель :)\nОтдельный респект за подхваченное в 22-00 задание!","article_id":1})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://russiansentimentanalyzer.p.rapidapi.com/rsa/sentiment/polarity/json/
Request Method: POST
Response Headers
Response Body

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://russiansentimentanalyzer.p.rapidapi.com/rsa/sentiment/polarity/json/")
.header("X-RapidAPI-Host", "russiansentimentanalyzer.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"text":"Гиперответственный классный исполнитель :)\nОтдельный респект за подхваченное в 22-00 задание!","article_id":1})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication