RapidAPI logo

Face Detection

FREEMIUM
By inferdo
Updated 15 days ago
Visual Recognition
5.5/10
Popularity Score
660ms
Latency
100%
Success Rate

Face Detection API Documentation

Use our Face Detection API to detect the location of human faces in your images.

View API Details
POSTFace Detection
POSTFace Detection

Use our Face Detection API to detect the location of human faces in your images.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
Face Detection RequestJSON_STRING
REQUIREDURL for image to be passed through the model. Accuracy_Boost value to increase model accuracy (values 1 to 4, default 2)
Code Snippet
unirest.post("https://face-detection6.p.rapidapi.com/img/face")
.header("X-RapidAPI-Host", "face-detection6.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"url":"https://www.inferdo.com/img/face-2.jpg","accuracy_boost":2})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://face-detection6.p.rapidapi.com/img/face
Request Method: POST
Response Headers
Response Body
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://face-detection6.p.rapidapi.com/img/face")
.header("X-RapidAPI-Host", "face-detection6.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"url":"https://www.inferdo.com/img/face-2.jpg","accuracy_boost":2})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication