POST/api/v1/face/analyze

Deep Facial Analysis API

Extract rich demographic and emotional attributes from a single API call. Estimate age, detect gender, recognise emotion, and predict ethnicity — all from one image.

POST /api/v1/face/analyze

REQUEST

curl -X POST https://api.faceguard.io/api/v1/face/analyze \
  -H "X-API-Key: fg_live_your_key_here" \
  -F "file=@face.jpg"
200 OK
{
  "age": 28,
  "gender": { "value": "Man", "confidence": 0.94 },
  "emotion": { "dominant": "happy", "scores": { "happy": 0.87, "neutral": 0.10 } },
  "ethnicity": { "dominant": "asian", "confidence": 0.76 }
}

Key Features

Everything you need from a production-ready Facial Analysis API.

Age Estimation

Returns estimated age as a numerical value, calibrated across global demographics.

Gender Detection

Classifies gender with a confidence score for each prediction.

Emotion Recognition

Detects 7 emotions: happy, sad, angry, surprised, fearful, disgusted, neutral.

Ethnicity Prediction

Predicts ethnicity category with confidence scores across multiple groups.

How it works

Integrate in minutes with our developer-friendly REST API.

01

Upload face image

POST a clear front-facing face image to the analyze endpoint.

02

Multi-attribute AI

DeepFace models analyse the image for age, gender, emotion, and ethnicity independently.

03

Receive attributes

Get all attributes in a single structured JSON response.

Data Output

Fields You Can Extract

All data returned as structured JSON — map directly to your database schema.

age
gender.value
gender.confidence
emotion.dominant
emotion.scores
ethnicity.dominant
response.json
{
  "age": 28,
  "gender": { "value": "Man", "confidence": 0.94 },
  "emotion": { "dominant": "happy", "scores": { "happy": 0.87, "neutral": 0.10 } },
  "ethnicity": { "dominant": "asian", "confidence": 0.76 }
}

Ready to integrate Facial Analysis?

Create a free account. Get 50 test API requests instantly — no credit card required.