RapidAPI logo

Sign Up

Log In

Deep Categorization

FREEMIUM
By MeaningCloud
Updated a month ago
4.7/10
Popularity Score
27280ms
Latency
57%
Success Rate

Deep Categorization API Documentation

Deep Categorization is MeaningCloud's solution for in-depth rule-based categorization. It assigns one or more categories to a text, using a very detailed rule-based language that allows you to identify very specific scenarios and patterns using a combination of morphological, semantic and text rules.

View API Details
GET/deepcategorization-1.0
GET/deepcategorization-1.0

Deep Categorization 1.0

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AcceptSTRING
OPTIONAL
Required Parameters
modelSTRING
REQUIREDCategorization model to use. See supported models: https://www.meaningcloud.com/developer/deep-categorization/doc/1.0/request#deepcat-supported-models
Optional Parameters
verboseSTRING
OPTIONAL'y' (enabled) or 'n' (disabled)
txtSTRING
OPTIONALInput text. It can be plain text, HTML or XML, always using UTF-8 encoding, (if 'txt' has a value, 'url' and 'doc' must be empty)
urlSTRING
OPTIONALURL of the content to analyze. Currently only non-authenticated HTTP and FTP are supported. The content types supported for URL contents can be found at https://www.meaningcloud.com/developer/documentation/supported-formats, (if 'url' has a value, 'txt' and 'doc' must be empty)
docSTRING
OPTIONALInput file with the content to analyze. The supported formats for file contents can be found at https://www.meaningcloud.com/developer/documentation/supported-formats, (if 'doc' has a value, 'url' and 'txt' must be empty)
udSTRING
OPTIONALThe user dictionary allows to include user-defined entities and concepts in the categorization. It provides a mechanism to adapt the process to focus on specific domains or on terms relevant to a user's interests, either to increase the precision in any of the domains already taken into account in our ontology, to include a new one, or just to add a new semantic meaning to known terms. You can define you own dictionary here: https://www.meaningcloud.com/developer/resources/dictionaries. Several user dictionaries can be used by separating them with '|'.
Request Snippet
unirest.get("https://meaningcloud-deep-categorization-v1.p.rapidapi.com/deepcategorization-1.0?txt=Zara+is+great%2C+lots+of+stylish+and+affordable+clothes%2C+shoes%2C+and+accessories.&model=IAB_2.0_en")
.header("X-RapidAPI-Host", "meaningcloud-deep-categorization-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Accept", "application/json")
.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.get("https://meaningcloud-deep-categorization-v1.p.rapidapi.com/deepcategorization-1.0?txt=Zara+is+great%2C+lots+of+stylish+and+affordable+clothes%2C+shoes%2C+and+accessories.&model=IAB_2.0_en")
.header("X-RapidAPI-Host", "meaningcloud-deep-categorization-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Accept", "application/json")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication