DocTop

FREEMIUM
By dmitrykey
Updated 3 months ago
Text Analysis
-/10
Popularity Score
-
Latency
-
Success Rate

DocTop API Documentation

Document level topic extraction for multiple languages: English, French, German, Dutch, Italian, Portuguese, Greek, Spanish

View API Details
POSTEnglish topics
POSTSpanish topics
POSTDutch topics
POSTFrench topics
POSTGreek topics
POSTGerman topics
POSTItalian topics
POSTPortuguese topics
POSTEnglish topics

Extract topics from a document(s) in English

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
English docJSON_STRING
REQUIREDEnglish doc to get topics from
Code Snippet
unirest.post("https://doctop.p.rapidapi.com/en")
.header("X-RapidAPI-Host", "doctop.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send([{"article_id":1,"text":"San Francisco considers banning sidewalk delivery robots"}])
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://doctop.p.rapidapi.com/en
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://doctop.p.rapidapi.com/en")
.header("X-RapidAPI-Host", "doctop.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send([{"article_id":1,"text":"San Francisco considers banning sidewalk delivery robots"}])
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication