Skip to content

Device Analytics

NearIT SDKs collects many information about your users devices.
To query this data you will need your NearIT app ID and the ID of the geofence node you want to analize.

GET https://api.nearit.com/installations/stats/[app_id]/geo/[node_id]
Parameter Description
filter[app_id] your NearIT app ID

Response

The API will provide a report of the devices inside the "attributes" object:

Parameter Description
total Number unique devices
location Number of devices with location permission and location detection turned on
bluetooth Number of devices with bluetooth turned on
platforms iOS and Android devices and OS version distribution
{
   "data":{
      "id":"installationstat",
      "type":"installation_stats",
      "attributes":{
         "app_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
         "total":124385,
         "location":58181,
         "bluetooth":52873,
         "platforms":{
            "ios":{
               "total":109961,
               "versions":{
                  "9.1":37,
                  "10.0":235,
                  "9.2":58,
                  "11.1":13739,
                  "10.1":259,
                  "11.2":80170,
                  "10.2":1041,
                  "11.3":929,
                  "11.0":8031,
                  "9.3":973,
                  "9.0":22,
                  "10.3":4467
               },
               "sdks":{
                  "2.6.0":58564,
                  "2.2.7":8923,
                  "2.5.6":5,
                  "2.4.2":22751,
                  "2.2.5":9,
                  "2.4.1":2620,
                  "2.5.1":17083,
                  "2.5.5":6
               }
            },
            "android":{
               "total":14424,
               "versions":{
                  "19":324,
                  "24":8246,
                  "23":3117,
                  "26":749,
                  "18":34,
                  "17":27,
                  "27":220,
                  "21":370,
                  "16":37,
                  "22":383,
                  "25":917
               },
               "sdks":{
                  "2.3.0":509,
                  "2.4.1":2289,
                  "2.5.7":9593,
                  "2.5.3":2033
               }
            }
         }
      }
   }
}