Face Detect API
The Face Detect API uses state of the art computer vision algorithms to accurately and efficiently detect faces in images.
/v1/facedetect POST
https://api.api-ninjas.com/v1/facedetect
Given an input image, returns a list containing all detected faces in the form of bounding boxes.
Files
- imagerequired- Image file containing faces. Must be either JPEG or PNG format. 
Headers
- X-Api-Keyrequired- API Key associated with your account. 
Sample Request Live Demo!
https://api.api-ninjas.com/v1/facedetectHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
JSON
1
Code Examples
1
2
3
curl -X POST "https://api.api-ninjas.com/v1/facedetect" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -F "image=@YOUR_IMAGE.jpeg"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.