Face Analysis Cloud Engine

FREE
By sightcorp_face
Updated 5 months ago
-/10
Popularity Score
-
Latency
-
Success Rate

Face Analysis Cloud Engine API Documentation

Easily detect faces & measure headpose, age, gender, emotion in images

View API Details
POSTFace Analysis Cloud Engine Detect [File]
POSTFace Analysis Cloud Engine Detect [Url]
POSTFace Analysis Cloud Engine Detect [File]

By sending a picture with one or more faces, the service will reply with a JSON response containing the following information: Age, Gender, Mood, Facial Expressions, Face Position, Face Rotation, Eye Position, Traking Points, Clothing Colors.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
app_keySTRING
REQUIREDThe application key is a 32 characters string that bounds the request to the app of the user in the server. This string allows the request to be authenticated.
imgBINARY
REQUIREDThe image to analyze. When this field is set, the content type of the request has to be multipart/form-data. The supported file formats are jpeg and png.
Code Snippet
unirest.post("https://sightcorp-f-a-c-e-v1-1.p.rapidapi.com/api/detect/")
.header("X-RapidAPI-Host", "sightcorp-f-a-c-e-v1-1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://sightcorp-f-a-c-e-v1-1.p.rapidapi.com/api/detect/
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://sightcorp-f-a-c-e-v1-1.p.rapidapi.com/api/detect/")
.header("X-RapidAPI-Host", "sightcorp-f-a-c-e-v1-1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.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