RapidAPI logo

IBMWatsonNLC

FREE
By dimashirokov
Updated 6 months ago
Text Analysis
1.1/10
Popularity Score
99ms
Latency
100%
Success Rate

IBMWatsonNLC API Documentation

Interpret natural language with custom classifiers.

View API Details
POSTclassify
POSTcreateClassifier
POSTdeleteClassifier
POSTgetClassifierInformation
POSTlistClassifiers
POSTclassify

Returns label information for the input.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
classifierIdSTRING
REQUIREDClassifier ID to query.
usernameCREDENTIALS
REQUIREDusername obtained from IBM Bluemix.
passwordCREDENTIALS
REQUIREDpassword obtained from IBM Bluemix.
textSTRING
REQUIREDPhrase to classify.
Code Snippet
unirest.post("https://IBMWatsonNLCdimashirokovV1.p.rapidapi.com/classify")
.header("X-RapidAPI-Host", "IBMWatsonNLCdimashirokovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://IBMWatsonNLCdimashirokovV1.p.rapidapi.com/classify
Request Method: POST
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.post("https://IBMWatsonNLCdimashirokovV1.p.rapidapi.com/classify")
.header("X-RapidAPI-Host", "IBMWatsonNLCdimashirokovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication