RapidAPI logo

MonkeyLearn

FREE
By zakutynsky
Updated 5 months ago
Text Analysis
0.8/10
Popularity Score
285ms
Latency
100%
Success Rate

MonkeyLearn API Documentation

Automate text classification with machine learning models.

View API Details
POSTclassify
POSTclassifyMulti
POSTcreateClassifier
POSTcreateClassifierCategory
POSTdeleteClassifier
POSTdeleteClassifierCategory
POSTdeployClassifier
POSTexecutePipeline
POSTextractEntities
POSTextractEntitiesInSpanish
POSTextractKeywordsInEnglish
POSTextractKeywordsInSpanish
POSTextractTextFromBinary
POSTextractTextFromHTML
POSTgetClassifiers
POSTgetSingleClassifier
POSTtrainClassifier
POSTupdateClassifierCategory
POSTuploadSamplesToCategory
POSTuploadSamplesToMultiCategory
POSTclassify

This endpoint allows you to perform the classification of many text samples using only one request to a custom or public module.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
apiTokenCREDENTIALS
REQUIREDThe api key obtained from Monkey Learn
textSTRING
REQUIREDThe text that you want to classify
classifierIdSTRING
REQUIREDID of the classifier. Example: cl_5icAVzKR
Optional Parameters
debugBOOLEAN
OPTIONALSet this parameter to true if you want to use the debug output.y
sandboxBOOLEAN
OPTIONALSet this parameter to true if you want to use the sandbox to perform the classification.
Code Snippet
unirest.post("https://MonkeyLearnzakutynskyV1.p.rapidapi.com/classify")
.header("X-RapidAPI-Host", "MonkeyLearnzakutynskyV1.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://MonkeyLearnzakutynskyV1.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://MonkeyLearnzakutynskyV1.p.rapidapi.com/classify")
.header("X-RapidAPI-Host", "MonkeyLearnzakutynskyV1.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