API_INTEGRATION
EMOCITY API: 3 LINES TO ANALYZE ANY FACE
GET THE API ON RAPIDAPI (FREE TIER)
SAME ENGINE AS THE SCAN, HOSTED. YOUR KEY FROM RAPIDAPI. PHOTO IN, ONE JSON PER FACE OUT; A CLIP GOES TO /ANALYZE/VIDEO.
curl -X POST "https://emopulse-face-analysis.p.rapidapi.com/api/v1/analyze/image" \ -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \ -H "X-RapidAPI-Host: emopulse-face-analysis.p.rapidapi.com" \ -F "file=@face.jpg"
// RESPONSE (EXAMPLE)
{
"faces_detected": 1,
"image_size": { "width": 1280, "height": 720 },
"faces": [{
"face_id": 0,
"dominant_emotion": "happy",
"emotion_breakdown_pct": { "happy": 62.0, "neutral": 31.0, "surprised": 7.0 },
"avg_stress": 28.4,
"avg_authenticity": 81.0,
"avg_eye_contact": 92.5,
"avg_deception": 9.7,
"micro_expressions": 0,
"genuine_smiles": 1,
"bounding_box": { "x_min": 0.31, "y_min": 0.18, "x_max": 0.58, "y_max": 0.74 }
}]
}