RapidAPI logo

Sign Up

Log In

Face Detection and Analytics

FREEMIUM
By matrixone
Updated 3 months ago
Data
-/10
Popularity Score
-
Latency
-
Success Rate

Face Detection and Analytics API Documentation

Facial detection in photos (e.g. Age, Gender, Emotions), generate full analytics for photographs (Popular Gender, Emotion, etc…). Build smart services on top of our robust API.

View API Details
Detect
POSTAnalytics for Faces
POSTDemographics for a Face
POSTAnalytics for Faces

Face detection in an image. Retrieve demographics of each face. Gather an analytics view of what we detected in that image.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
Image URLJSON_STRING
REQUIREDImage
Request Snippet
unirest.post("https://matrixone-detect-v1.p.rapidapi.com/api/v1/faces")
.header("X-RapidAPI-Host", "matrixone-detect-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"imageUrl":"https://storage.googleapis.com/detection-server-tests/single_face.jpg","uid":"my-optional-request-uid"})
.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://matrixone-detect-v1.p.rapidapi.com/api/v1/faces")
.header("X-RapidAPI-Host", "matrixone-detect-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"imageUrl":"https://storage.googleapis.com/detection-server-tests/single_face.jpg","uid":"my-optional-request-uid"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication