Ontotext S4 Text Analytics

FREE
By Ontotext_S4
Updated 4 months ago
Tools
-/10
Popularity Score
-
Latency
-
Success Rate

Ontotext S4 Text Analytics API Documentation

The Self-Service Semantic Suite (S4) provides a set of services for low-cost, on-demand text analytics and metadata management on the cloud.

View API Details
POSTTwitter Analytics
POSTNews Analytics
POSTSemantic Biomedical Tagger
POSTNews Classifier
POSTTwitter Analytics

A named entity recognition service specially tuned to use Twitter data

Authorization:

apiKey / apiSecret

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationBASIC
REQUIREDapiKey / apiSecret
Accept-EncodingSTRING
OPTIONAL
Content-TypeSTRING
REQUIRED
AcceptSTRING
REQUIRED
Required Parameters
JSON PayloadJSON_STRING
REQUIREDAvailable document types: "text/plain" (for plain text documents), "text/xml" (for XML documents), "text/html" (for HTML documents), "text/x-json-twitter" (for Twitter JSON format), "application/msword" (for MS Word documents (.doc)), "application/vnd.openxmlformats-officedocument.wordprocessingml.document" (for MS Word documents (.docx)), "application/rtf" (for Rich Text Format documents)
pipelineidSTRING
REQUIRED - CONSTANT
Code Snippet
unirest.post("https://ontotext_s4-text-analytics-v1.p.rapidapi.com/twitie")
.header("X-RapidAPI-Host", "ontotext_s4-text-analytics-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Accept-Encoding", "gzip")
.header("Content-Type", "application/json")
.header("Accept", "application/json")
.send({"documentType":"text/plain","document":"<your text here>","imageTagging":false,"imageCategorization":false,"annotationSelectors":[]})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://ontotext_s4-text-analytics-v1.p.rapidapi.com/{pipelineid}
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://ontotext_s4-text-analytics-v1.p.rapidapi.com/twitie")
.header("X-RapidAPI-Host", "ontotext_s4-text-analytics-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Accept-Encoding", "gzip")
.header("Content-Type", "application/json")
.header("Accept", "application/json")
.send({"documentType":"text/plain","document":"<your text here>","imageTagging":false,"imageCategorization":false,"annotationSelectors":[]})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication