RapidAPI logo

Sparshik FaceAPI

FREEMIUM
By sparshik
Updated a month ago
Machine Learning
1.5/10
Popularity Score
452ms
Latency
100%
Success Rate

Sparshik FaceAPI API Documentation

Face API optimized on Indian Faces to detect and predict attributes for a given image or video

View API Details
POSTVerify
POSTDetect
POSTVerify

Verify two faces using faceId obtained from detect api

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
faceId2STRING
OPTIONALfaceId1 and faceId2 both should have been generated by Face Detect API using same model (required)
faceId1STRING
OPTIONALfaceId1 and faceId2 both should have been generated by Face Detect API using same model (required)
Code Snippet
unirest.post("https://sparshik-faceapi.p.rapidapi.com/api/v1/face/verify/")
.header("X-RapidAPI-Host", "sparshik-faceapi.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("faceId2=8c20bd30-1b4a-43fe-995f-f48d53e1104b")
.send("faceId1=70c8fcea-f716-4245-8699-889bf2472efb")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://sparshik-faceapi.p.rapidapi.com/api/v1/face/verify/
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://sparshik-faceapi.p.rapidapi.com/api/v1/face/verify/")
.header("X-RapidAPI-Host", "sparshik-faceapi.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("faceId2=8c20bd30-1b4a-43fe-995f-f48d53e1104b")
.send("faceId1=70c8fcea-f716-4245-8699-889bf2472efb")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication