Sign Up

Log In

Text Clustering

FREEMIUM
By MeaningCloud
Updated 7 months ago
3.3/10
Popularity Score
703ms
Latency
100%
Success Rate

Text Clustering API Documentation

Text Clustering is MeaningCloud's solution for automatic document clustering, i.e., the task of grouping a set of texts in such a way that texts in the same group (called a cluster) are more similar to each other than to those in other clusters.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub

POST/clustering-1.1
POST/clustering-1.1

Text Clustering 1.1

FreemiumThis API has a free, limited plan and paid plans. You can subscribe directly to it from RapidAPI.
Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
langSTRING
REQUIREDLanguage in which the text is ('en', 'es', 'it', 'fr', 'pt')
txtSTRING
REQUIREDThis parameter will contain one or more texts, one per line. All the texts sent in this parameter will be assigned automatically the ID used to identify them at the output. The IDs will be numerical, and will start from 1.
Optional Parameters
AcceptSTRING
OPTIONAL
idSTRING
OPTIONALThis parameter will contain the IDs associated to the input texts. Each ID will have to be included in a different line, and the number of IDs included has to be the same as the number of texts included in txt.
modeSTRING
OPTIONALThis parameter will define the approach used to carry out the clustering process. To read more about the possibilities check the Clustering modes section: https://www.meaningcloud.com/developer/text-clustering/doc/1.1/request#clustering-modes
swSTRING
OPTIONALStopwords to be ignored by the algorithm, both in the clustering process, and as labels for the clusters. The valid format is a stopword per line (separated by linefeed "\n"). These stopwords are added to the ones used by default for the selected lang.
Request Snippet
unirest.post("https://meaningcloud-text-clustering-v1.p.rapidapi.com/clustering-1.1")
.header("X-RapidAPI-Key", "undefined")
.header("Accept", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("id=undefined")
.send("mode=undefined")
.send("sw=undefined")
.send("lang=<required>")
.send("txt=<required>")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

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.post("https://meaningcloud-text-clustering-v1.p.rapidapi.com/clustering-1.1")
.header("X-RapidAPI-Key", "undefined")
.header("Accept", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("id=undefined")
.send("mode=undefined")
.send("sw=undefined")
.send("lang=<required>")
.send("txt=<required>")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication
Sign up for freeto test this endpoint
Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard