b-semantic

FREE
By akreienbring
Updated 4 months ago
Data
-/10
Popularity Score
-
Latency
-
Success Rate

b-semantic API Documentation

Use b-semantic's API to extract and analyze web text.

The API contains endpoints for text extraction, entity extraction, similarity computing and URL recommendations based on similarity. b-semantic is REST based, employs HTTP POST methods, and accepts JSON data types.

Use the text extraction service to extract the main text elements from a URL or HTML source code. The entity extraction web service identifies entities. Compare URL's, HTML Fragments or text by measuring their similarity. Finally get recommendations based on website similarity. IMPORTANT: This is one of the rare apis that explicitly supports the german language regarding semantic analytics!

View API Details
POSTText extraction API
POSTEntity extraction API
POSTText similarity API
POSTRecommendation API
POSTText extraction API

This RESTful Webservice extracts the main textelements from a given URL or from HTML source code. The service will try to detect the language and to extract keywords, title, description and the main text snippet from the given input.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
Text extraction API modelJSON_STRING
REQUIREDPass an url.
Code Snippet
unirest.post("https://b-semantic.p.rapidapi.com/scrape")
.header("X-RapidAPI-Host", "b-semantic.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"url":"http://www.la-danza.de"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://b-semantic.p.rapidapi.com/scrape
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://b-semantic.p.rapidapi.com/scrape")
.header("X-RapidAPI-Host", "b-semantic.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"url":"http://www.la-danza.de"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication