RapidAPI logo

Sign Up

Log In

Bitext Text and Sentiment Analysis

FREE
By bitext
Updated 3 months ago
Social
7/10
Popularity Score
795ms
Latency
55%
Success Rate

Bitext Text and Sentiment Analysis API Documentation

Get your API key at https://api.bitext.com/#/signup/api

Contact us at info@bitext.com

You can use this REST API to perform:

Sentiment Analysis: Structure every part of an opinion into positive/neutral/negative, identify the topic of the opinion, the sentiment expression used, and get a numeric value for each of the sentiment-bearing phrases.

Entity Extraction: Extract from text names, places, firms, twitter users, and others.

Categorization: Classify text using a custom build taxonomy

Concept Analysis: Linguistically based structuring text.

View API Details
POSTentities analysis
POSTconcepts analysis
POSTcategories analysis
POSTsentiment analysis
GETsentiment results
GETentities results
GETconcepts results
GETcategories results
POSTentities analysis

entities analysis

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Content-TypeSTRING
CONSTANT
AuthorizationSTRING
REQUIREDCopy your authorization token replacing the string "abcdefghijklmnopqrstvwxyz"
Required Parameters
PostDataJSON_STRING
REQUIRED
Content-TypeSTRING
REQUIRED - CONSTANT
Request Snippet
unirest.post("https://bitext-bitext-sentiment-analysis.p.rapidapi.com/entities/")
.header("X-RapidAPI-Host", "bitext-bitext-sentiment-analysis.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.header("Authorization", "bearer abcdefghijklmnopqrstvwxyz")
.header("Content-Type", "application/json")
.send({"language":"eng","text":"I have a beautiful house in Madrid"})
.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://bitext-bitext-sentiment-analysis.p.rapidapi.com/entities/")
.header("X-RapidAPI-Host", "bitext-bitext-sentiment-analysis.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.header("Authorization", "bearer abcdefghijklmnopqrstvwxyz")
.header("Content-Type", "application/json")
.send({"language":"eng","text":"I have a beautiful house in Madrid"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication