Category Recommendation

FREEMIUM
By twinword
Updated 5 months ago
Text Analysis
6.2/10
Popularity Score
327ms
Latency
100%
Success Rate

Category Recommendation API Documentation

Recommend highly related categories for e-commerce and other uses.

View API Details
Category Recommendation
POSTRecommend (post)
GETRecommend (get)
POSTRecommend (post)

Recommend highly related categories for e-commerce and other uses.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
textSTRING
REQUIREDEnter some text to find related categories:
Code Snippet
unirest.post("https://twinword-category-recommendation-api.p.rapidapi.com/recommend/?text=coffee+maker")
.header("X-RapidAPI-Host", "twinword-category-recommendation-api.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://twinword-category-recommendation-api.p.rapidapi.com/recommend/
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://twinword-category-recommendation-api.p.rapidapi.com/recommend/?text=coffee+maker")
.header("X-RapidAPI-Host", "twinword-category-recommendation-api.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