Skip to content

Target Analytics

NearIT provide an API to read organized target analytics for your app.
To query this API you will need your NearIT app ID.

Reachable

An API return a report of the total target distribution.

GET https://api.nearit.com/plugins/congrego/profiles/stats
Parameter Description
filter[app_id] NearIT app ID

Response

For each user data, you will be able to see your target distribution.

{
   "data":[
      {
         "id":"language",
         "type":"profile_stats",
         "attributes":{
            "app_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            "total":124093,
            "data_points":{
               "de":13276,
               "en":38356,
               "es":7166,
               "fr":10096,
               "it":32103,
               "nl":1856,
               "pl":4,
               "pt":4749,
               "ru":2090
            }
         }
      },
      {
         "id":"favorite_sport",
         "type":"profile_stats",
         "attributes":{
            "app_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            "total":124093,
            "data_points":{
               "football":13276,
               "basket":38356,
               "volley":7166,
               "golf":10096,
               "snowboarding":32103
            }
         }
      }
   ]
}

If you want to get data labels or need more info about our profiling system please look at the NearIT Congrego APIs reference.

Users Reached by Recipes

An API returns a report of the users reached by any recipe in a timeframe.

GET https://api.nearit.com/stats/[app_id]/target
Parameter Description
from starting date (yyyy/mm/dd)
to end date (yyyy/mm/dd) (included)

Response

For each user data, you will be able to see your target distribution.

{
   "data":[
      {
         "type":"stats",
         "id":"language",
         "attributes":{
            "app_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            "total":150,
            "data_points":{
               "en":139,
               "de":2,
               "es":1,
               "it":8
            }
         }
      },
      {
         "type":"stats",
         "id":"favorite_sport",
         "attributes":{
            "app_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            "total":150,
            "data_points":{
               "football":150,
               "basket":123,
               "snowboarding":13
            }
         }
      }
   ]
}

If you want to get data labels or need more info about our profiling system please look at the NearIT Congrego APIs reference.