RapidAPI logo

Sign Up

Log In

Microsoft Text Analytics

FREEMIUM
By microsoft-azureOfficial
Updated 4 months ago
Text Analysis
8.3/10
Popularity Score
95ms
Latency
47%
Success Rate

Microsoft Text Analytics API Documentation

The Text Analytics API is a suite of text analytics web services built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction and language detection. No training data is needed to use this API; just bring your text data. This API uses advanced natural language processing techniques to deliver best in class predictions.

View API Details
POSTDetect Language
POSTKey Phrases
POSTSentiment
POSTDetect Language

The API returns the detected language and a numeric score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. A total of 120 languages are supported.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
DocumentsJSON_STRING
REQUIRED
Request Snippet
unirest.post("https://microsoft-azure-text-analytics-v1.p.rapidapi.com/languages")
.header("X-RapidAPI-Host", "microsoft-azure-text-analytics-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"documents":[{"id":"sentence1","text":"Hello, world"},{"id":"sentence2","text":"שלום עולם"}]})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
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://microsoft-azure-text-analytics-v1.p.rapidapi.com/languages")
.header("X-RapidAPI-Host", "microsoft-azure-text-analytics-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"documents":[{"id":"sentence1","text":"Hello, world"},{"id":"sentence2","text":"שלום עולם"}]})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication