RapidAPI logo

nlpTools

FREEMIUM
By atrilla
Updated 4 months ago
Tools
-/10
Popularity Score
-
Latency
-
Success Rate

nlpTools API Documentation

Text processing framework to analyse Natural Language. It is especially focused on text classification and sentiment analysis of online news media (general-purpose, multiple topics).

View API Details
POSTSentiment Analysis
POSTSentiment Analysis

Sentiment analysis of online news media (general-purpose, multiple topics). See "http://nlptools.atrilla.net/web/api.php" for more details.

Authorization:

API key registration

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
serviceSTRING
REQUIREDThe name of the service, i.e., "sentiment_news"
textSTRING
REQUIREDThe text to be analysed.
app_keyQUERY
REQUIREDInsert you App Key here
Code Snippet
unirest.post("https://atrilla-nlptools.p.rapidapi.com/")
.header("X-RapidAPI-Host", "atrilla-nlptools.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("text=The quick brown fox jumps over the lazy dog")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://atrilla-nlptools.p.rapidapi.com/
Request Method: POST
Response Headers
Response Body
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://atrilla-nlptools.p.rapidapi.com/")
.header("X-RapidAPI-Host", "atrilla-nlptools.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("text=The quick brown fox jumps over the lazy dog")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication