The Google Analytics Data API can be used to retrieve the crashAffectedUsers & crashFreeUsersRate. crashAffectedUsers is number of users that logged a crash, and crashFreeUsersRate number of users without crash events divided by the total number of users. The Data API schema page contains more details about these metrics.
An example request to the RunReport method looks like the following:
{
"dateRanges": [
{
"startDate": "7daysAgo",
"endDate": "today"
}
],
"dimensions": [
{
"name": "date"
}
],
"metrics": [
{
"name": "crashFreeUsersRate"
},
{
"name": "crashAffectedUsers"
},
{
"name": "totalUsers"
}
]
}
An example response row looks like the following. This row means: on 2021-11-13, the crash free users rate was 99.836%, 2 users were affected by crashes, and 1220 total users used your app.
{
"dimensionValues": [
{
"value": "20211113"
}
],
"metricValues": [
{
"value": "0.99836"
},
{
"value": "2"
},
{
"value": "1220"
}
]
},