Private API Examples

Here are some examples or use cases of how you can use the private API to retrieve useful data. Please note that the following examples will be made for our Demo App that doesn't require authentication. To use them for your application, you have to replace the 000000000000000000000000 with your application's tracking code and provide an authentication token.

Getting installation data from last week

Let's assume that today is September 1st, 2022. Thus, we need to set our minDate to be current day - 7, which will result in August 25th, 2022. We'll also use hitFilters=customers to see data only from our customers and exclude internal IPs. Please note that this method will retrieve only the first 10 results due to the limit=10 applied by default. To overcome this limitation, you have to provide the limit of your choice using limit.

https://installeranalytics.com/api/apps/000000000000000000000000/reports/installs?hitFilters=customers&minDate=2022-08-24T00:00:00.000Z

Getting installation data for a specific version

Here, we'll get all data regarding version 2.0 of our application, thus we'll use version=2.0 and also limit=100 in order to get the first 100 results (overriding the default limit=10).

https://installeranalytics.com/api/apps/000000000000000000000000/reports/installs?version=2.0&limit=100

Getting installation status data from last month

Let's assume that today is September 1st, 2022. Thus, we need to set our minDate to be current day - 1 month, which will result in August 1st, 2022. Please note that for our Demo App, this route will not return anything since it doesn't have any installs status defined for the existing data.

https://installeranalytics.com/api/apps/000000000000000000000000/reports/installs-status?minDate=2022-08-01T00:00:00.000Z

Getting version installs data regardless of IP

To get all data from your customers but also your internal IPs, you have to use the hitFilters=all parameter.

https://installeranalytics.com/api/apps/000000000000000000000000/reports/installs-per-version?hitFilters=all

Getting custom properties data for all uninstalls from a specific date range

To get only the uninstall data from custom properties, we need to use customPropertiesFilter=uninstall. Also, to achieve a specific date range, we'll need to use minDate and maxDate. In the example below, uninstall data between September 17th, 2022 and September 20th, 2022 will be retrieved.

https://installeranalytics.com/api/apps/000000000000000000000000/reports/custom-properties?customPropertiesFilter=uninstall&minDate=2022-09-17T00:00:00.000Z&maxDate=2022-09-20T00:00:00.000Z

Getting the user base from a specific date range, grouped by month

To achieve a specific date range, we'll need to use minDate and maxDate. For the grouping part, we'll use dateGrouping=month and also mode=timeline.

https://installeranalytics.com/api/apps/000000000000000000000000/reports/user-base?minDate=2022-08-01T00:00:00.000Z&maxDate=2022-09-30T00:00:00.000Z&dateGrouping=month&mode=timeline

Getting all the detailed exceptions for a specific version

To obtain results for a specific version, we simply need to add the version parameter.

https://installeranalytics.com/api/apps/000000000000000000000000/reports/exceptions-detailed?version=2.0

Getting the top 5 screen resolutions

To get the top 5 screen resolutions we need to use the mode=total parameter for the total number and also the limit=5 parameter for the top 5.

https://installeranalytics.com/api/apps/000000000000000000000000/reports/screen-resolution?limit=5&mode=total

Getting the DirectX versions only from your internal IPs

Retrieving only data from the internal IPs will require the use of hitFilters=filtered. Please note that for our Demo App, the following example will not return any data.

https://installeranalytics.com/api/apps/000000000000000000000000/reports/common-software-dx?hitFilters=filtered

Getting the top 10 countries

To get the top 10 countries we need to use the mode=total parameter for the total number and also the limit=10 parameter for the top 10.

https://installeranalytics.com/api/apps/000000000000000000000000/reports/geographic-world?limit=10&mode=total