RapidAPI logo

Sign Up

Log In

MicrosoftEmotionAPI

FREE
By dimas
Updated a year ago
Visual Recognition
3.7/10
Popularity Score
119ms
Latency
100%
Success Rate

MicrosoftEmotionAPI API Documentation

Detect various emotions from a facial expression image.

View API Details

Supercharge your App

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

Recognizes the emotions expressed by one or more people in an image, as well as returns a bounding box for the face. The emotions detected are happiness, sadness, surprise, anger, fear, contempt, and disgust or neutral.

Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
subscriptionKeyCREDENTIALS
REQUIREDThe api key obtained from Microsoft Cognitive Servisces.
imageFILE
REQUIREDThe image for recognizing.
Request Snippet
unirest.post("https://MicrosoftEmotionAPIdimasV1.p.rapidapi.com/getEmotionRecognition")
.header("X-RapidAPI-Host", "undefined")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.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://MicrosoftEmotionAPIdimasV1.p.rapidapi.com/getEmotionRecognition")
.header("X-RapidAPI-Host", "undefined")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication