RapidAPI logo

Sign Up

Log In

Text-Processing

FREEMIUM
By japerk
Updated 3 months ago
Other
9.4/10
Popularity Score
569ms
Latency
69%
Success Rate

Text-Processing API Documentation

Sentiment analysis, stemming and lemmatization, part-of-speech tagging and chunking, phrase extraction and named entity recognition.

View API Details
POSTphrases
POSTstem
POSTsentiment
POSTtag
POSTphrases

Extract phrase chunks and named entities from text. See http://text-processing.com/docs/phrases.html for more details.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
textSTRING
REQUIREDText to extract from, must be no more than 1000 characters.
Optional Parameters
languageSTRING
OPTIONALThe default language is english, but it also supports dutch, portuguese, and spanish.
Request Snippet
unirest.post("https://japerk-text-processing.p.rapidapi.com/phrases/")
.header("X-RapidAPI-Host", "japerk-text-processing.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("language=spanish")
.send("text=California is nice")
.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://japerk-text-processing.p.rapidapi.com/phrases/")
.header("X-RapidAPI-Host", "japerk-text-processing.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("language=spanish")
.send("text=California is nice")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication