Get desktop application installs
Use this REST URI to get aggregate install data in JSON format for a desktop application that you have added to the Windows Desktop Application program. This URI enables you to get install data during a given date range and other optional filters. This information is also available in the Installs report for desktop applications in Partner Center.
Prerequisites
To use this method, you need to first do the following:
- If you have not done so already, complete all the prerequisites for the Microsoft Store analytics API.
- Obtain an Azure AD access token to use in the request header for this method. After you obtain an access token, you have 60 minutes to use it before it expires. After the token expires, you can obtain a new one.
Request
Request syntax
Method | Request URI |
---|---|
GET | https://manage.devcenter.microsoft.com/v1.0/my/analytics/desktop/installbasedaily |
Request header
Header | Type | Description |
---|---|---|
Authorization | string | Required. The Azure AD access token in the form Bearer <token>. |
Request parameters
Parameter | Type | Description | Required |
---|---|---|---|
applicationId | string | The product ID of the desktop application for which you want to retrieve install data. To get the product ID of a desktop application, open any analytics report for your desktop application in Partner Center (such as the Installs report) and retrieve the product ID from the URL by hovering your mouse over the link to reveal the details. | Yes |
startDate | date | The start date in the date range of install data to retrieve. The default is 90 days prior to the current date. | No |
endDate | date | The end date in the date range of install data to retrieve. The default is the current date. | No |
top | int | The number of rows of data to return in the request. The maximum value and the default value if not specified is 10000. If there are more rows in the query, the response body includes a next link that you can use to request the next page of data. | No |
skip | int | The number of rows to skip in the query. Use this parameter to page through large data sets. For example, top=10000 and skip=0 retrieves the first 10000 rows of data, top=10000 and skip=10000 retrieves the next 10000 rows of data, and so on. | No |
filter | string | One or more statements that filter the rows in the response. Each statement contains a field name from the response body and value that are associated with the eq or ne operators, and statements can be combined using and or or. String values must be surrounded by single quotes in the filter parameter. You can specify the following fields from the response body:
|
No |
orderby | string | A statement that orders the result data values for each install. The syntax is orderby=field [order],field [order],.... The field parameter can be one of the following fields from the response body:
The order parameter is optional, and can be asc or desc to specify ascending or descending order for each field. The default is asc. Here is an example orderby string: orderby=date,market |
No |
groupby | string | A statement that applies data aggregation only to the specified fields. You can specify the following fields from the response body:
The returned data rows will contain the fields specified in the groupby parameter as well as the following:
|
No |
Request example
The following example demonstrates several requests for getting desktop application install data. Replace the applicationId value with the Product ID for your desktop application.
GET https://manage.devcenter.microsoft.com/v1.0/my/analytics/desktop/installbasedaily?applicationId=1234567890&startDate=2018-01-01&endDate=2018-02-01&top=10&skip=0 HTTP/1.1
Authorization: Bearer <your access token>
GET https://manage.devcenter.microsoft.com/v1.0/my/analytics/desktop/installbasedaily?applicationId=1234567890&startDate=2018-01-01&endDate=2018-02-01&filter=market eq 'US' and deviceType eq 'PC' HTTP/1.1
Authorization: Bearer <your access token>
Response
Response body
Value | Type | Description |
---|---|---|
Value | array | An array of objects that contain aggregate install data. For more information about the data in each object, see the following table. |
@nextLink | string | If there are additional pages of data, this string contains a URI that you can use to request the next page of data. For example, this value is returned if the top parameter of the request is set to 10000 but there are more than 10000 rows of install data for the query. |
TotalCount | int | The total number of rows in the data result for the query. |
Elements in the Value array contain the following values.
Value | Type | Description |
---|---|---|
date | string | The date associated with the install base value. |
applicationId | string | The product ID of the desktop application for which you retrieved install data. |
productName | string | The display name of the desktop application as derived from the metadata of its associated executable(s). |
applicationVersion | string | The version of the application executable that was installed. |
deviceType | string | One of the following strings that specifies the type of device on which the desktop application is installed:
|
market | string | The ISO 3166 country code of the market in which the desktop application is installed. |
osVersion | string | One of the following strings that specifies the OS version on which the desktop application is installed:
|
osRelease | string | One of the following strings that specifies the OS release or flighting ring (as a subpopulation within OS version) on which the desktop application is installed. For Windows 11: Version 2110 For Windows 10:
For Windows Server 1709:
For Windows Server 2016:
For Windows 8.1:
For Windows 7:
If the OS release or flighting ring is unknown, this field has the value Unknown. |
installBase | number | The number of distinct devices that had the product installed at the specified aggregation level. |
Response example
The following example demonstrates an example JSON response body for this request.
{
"Value": [
{
"date": "2018-01-24",
"applicationId": "123456789",
"productName": "Contoso Demo",
"applicationVersion": "1.0.0.0",
"deviceType": "PC",
"market": "All",
"osVersion": "Windows 10",
"osRelease": "Version 1709",
"installBase": 348218.0
}
],
"@nextLink": "desktop/installbasedaily?applicationId=123456789&startDate=2018-01-01&endDate=2018-02-01&top=10000&skip=10000&groupby=applicationVersion,deviceType,osVersion,osRelease",
"TotalCount": 23012
}