RapidAPI logo

TextAPI

FREEMIUM
By textapi
Updated a month ago
Data
-/10
Popularity Score
-
Latency
-
Success Rate

TextAPI API Documentation

A text extraction, manipulation, and analysis api. Putting the power of natural language processing (nlp) in every developers hands.

View API Details
GETSentiment
GETOCR
GETSummarization and Keyword Selection
GETLanguage Detection
GETLanguage Translation
GETEntity Extraction
GETTagging
GETSpelling Correction
GETNoun Phrases
GETSentiment

Returns sentiment of input text

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
textSTRING
REQUIREDText to analyze
Code Snippet
unirest.get("https://textapis.p.rapidapi.com/sentiment/?text=That+concert+was+pretty+fun+to+attend!")
.header("X-RapidAPI-Host", "textapis.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://textapis.p.rapidapi.com/sentiment/
Request Method: GET
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.get("https://textapis.p.rapidapi.com/sentiment/?text=That+concert+was+pretty+fun+to+attend!")
.header("X-RapidAPI-Host", "textapis.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication