Skip to content

Face Demography API

Warning

This API will be deprecated in mid 2021. Please consider to use Asynchronous APIs

Send a POST request to https://api.cloud.nodeflux.io/v1beta1/image-analytic/stream by providing these arguments as application/json.

Headers

Key Value
Content-type application/json
Authorization Your authorization key.
x-nodeflux-timestamp x-nodeflux-timestamp from the Authorization API.

Request Body

{
  "analytics": [
    {
      "type": "FACE_DEMOGRAPHY"
    }
  ],
  "image": {
    "encoding": "IMAGE_ENCODING_JPEG",
    "content": "{INSERT_JPEG_IMAGE_AS_BASE64_STRING}"
  }
}

Response Body

HTTP Mapping: 200 OK

{
   "result":{
      "face_demographics":[
         {
            "gender":"FEMALE",
            "gender_confidence":0.99989927,
            "age":21
         }
      ]
   }
}

Protocol Reference

Protocol reference available on nodeflux.analytics.v1beta1.FaceDemography