About the API:
Using deep learning, this API runs an analysis of the face URLs that you pass to it. Be able to analyze the gender and estimated age of the person, and also, additional features.
This API will receive the image URL that you want to analyze. After running the scan, you will receive:
The number of faces detected.
The emotion that is expressed on the face.
Estimated Age.
Gender.
If the person has a mask or not.
If the person has the eyes closed or not.
Is the mouth open or not? Is the person smiling?
All this data will be delivered by the API.
This API is ideal to use alongside other face analysis ones. You will be able to predict someone's age and avoid the users from making further actions on your platforms.
Also, be able to determine the genders to take decisions based on that.
Detect multiple people in one picture, so if you ask your users for a picture of themselves and you receive a picture with several people, you can stop further actions.
Is ideal to check if the person has the eyes open or not. Be able to analyze an image and detect if the person is giving attention or sleeping.
Besides API call limitations per month, there is a rate limit of 1 API calls per second.
{"statusCode": 200, "body": {"faces": [{"boundingBox": {"topLeft": {"x": 0.29, "y": 0.33}, "bottomRight": {"x": 0.7, "y": 0.71}}, "facialFeatures": {"Gender": "Female", "Smile": false, "Eyeglasses": false, "Sunglasses": false, "AgeRange": {"Low": 23, "High": 29}, "Emotions": ["CALM"]}, "landmarks": {"eyeLeft": {"center": {"x": 0.38, "y": 0.47}, "left": {"x": 0.35, "y": 0.47}, "right": {"x": 0.42, "y": 0.47}, "down": {"x": 0.38, "y": 0.48}, "up": {"x": 0.38, "y": 0.47}}, "eyeRight": {"center": {"x": 0.57, "y": 0.46}, "left": {"x": 0.53, "y": 0.47}, "right": {"x": 0.61, "y": 0.46}, "down": {"x": 0.57, "y": 0.47}, "up": {"x": 0.57, "y": 0.46}}, "mouth": {"left": {"x": 0.41, "y": 0.61}, "right": {"x": 0.57, "y": 0.61}, "down": {"x": 0.48, "y": 0.63}, "up": {"x": 0.48, "y": 0.59}}, "nose": {"center": {"x": 0.47, "y": 0.54}, "left": {"x": 0.44, "y": 0.56}, "right": {"x": 0.51, "y": 0.56}}, "browLeft": {"left": {"x": 0.31, "y": 0.45}, "right": {"x": 0.41, "y": 0.43}, "up": {"x": 0.36, "y": 0.42}}, "browRight": {"left": {"x": 0.52, "y": 0.42}, "right": {"x": 0.65, "y": 0.43}, "up": {"x": 0.58, "y": 0.41}}, "chinBottom": {"x": 0.5, "y": 0.71}}}]}}
curl --location --request POST 'https://zylalabs.com/api/417/face+analysis+api/6826/face+analyzer?url=https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/tom-hardy-3-1537960058.jpg?crop=1xw:1xh;center,top&resize=480:' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The Face Analysis API returns data related to facial analysis, including the number of faces detected, estimated age, gender, emotional expression, and specific features like whether the person is wearing a mask, has their eyes closed, or is smiling.
Key fields in the response data include "number_of_faces," "estimated_age," "gender," "emotion," "mask_status," "eyes_closed," "mouth_open," and "smiling." Each field provides specific insights about the detected faces.
The response data is structured in JSON format, with a main object containing status information and a body that includes detailed analysis results. For example, a successful response will include fields like "number_of_faces" and "emotion" within the body.
The Face Analyzer endpoint provides information on the number of faces detected, their estimated ages, genders, emotional expressions, and specific facial features such as mask-wearing and eye/mouth status.
The primary parameter for the Face Analyzer endpoint is the "image_url," which must be provided in the request. This URL should point to an image containing one or more faces for analysis.
Users can leverage the returned data to enhance user experience, such as filtering actions based on age or gender, ensuring user engagement by checking if faces are attentive, or managing content based on emotional expressions.
Data accuracy is maintained through advanced deep learning algorithms trained on diverse datasets. Continuous model updates and validation against real-world scenarios help ensure reliable analysis results.
Typical use cases include user verification in applications, enhancing user engagement by analyzing emotional responses, and filtering content based on demographic insights like age and gender.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
280ms
Service Level:
100%
Response Time:
917ms
Service Level:
100%
Response Time:
269ms
Service Level:
100%
Response Time:
800ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
465ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms