RapidAPI logo

Text Classification

FREEMIUM
By MeaningCloud
Updated 2 months ago
Social
4.1/10
Popularity Score
172ms
Latency
100%
Success Rate
Discussions
Hi Developer, feel free to ask your question:
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://text-classification.p.rapidapi.com/class-1.1.php?of=json&txt=The+85th+Academy+Awards+ceremony+took+place+February+24%2C+2013.&verbose=n&categories=0800&model=IPTC_en")
.header("X-RapidAPI-Host", "text-classification.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Accept", "application/json")
.header("Accept", "application/json")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication