RapidAPI logo

Sign Up

Log In

TextAPI

FREEMIUM
By textapi
Updated 3 months ago
Data
4.7/10
Popularity Score
59309ms
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
Request 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
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.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