Reviews Stats allows you to fetch all the stats related to the reviews entries about a specific app on the App Store in the selected country and based on several criteria like date, rating or even to search for a specific word or expression in the reviews's body.
Please note that the example has been stripped of redundant data to keep the documentation as concise as possible. The API might return additional, undocumented fields in the JSON, which your App should not rely upon.
This endpoint returns all the stats collected by AppTweak on all the reviews available on the selected period (dates range) for the given app in the chosen country.
The two letter country code (ISO Alpha-2) you want to fetch the app in.
us. Get the list of our country codes, here.
Minimum rating value
Integer between 1 and 5
Maximum rating value
Integer between 1 and 5
Start date, format: YYYY-MM-DD
End date, format: YYYY-MM-DD
Term to search for.
For instance: bug
GET /ios/applications/454638411/reviews/filter/stats.json?country=us&min_rating=1&max_rating=5&start_date=2018-09-01&end_date=2018-09-30&term=bug
curl -X GET -H "X-Apptweak-Key: ${API_KEY}" "https://api.apptweak.com/ios/applications/454638411/reviews/filter/stats.json?country=us&min_rating=1&max_rating=5&start_date=2018-09-01&end_date=2018-09-30&term=bug"
The Review stats is a JSON hash containing both aggregate stats for all reviews on the selected period (date range) but also on a daily basis.
Aggregated stats for the selected period.
The number of reviews posted on the selected period which satisfies the given criteria.
Average rating for the reviews posted on the selected period which satisfies the given criteria.
Key/value pair providing the number of reviews posted on the selected period which satisfies the given criteria, per rating (1 => 5).
Key/value pair providing the stats on a daily basis for all reviews posted on the selected period which satisfies the given criteria.
Start date for the selected period.
End date for the selected period.
Array of hash containing the same information as the aggregate entry but on a daily basis.
{
"content": {
"aggregate": {
"total": 22,
"average": 2.090909090909091,
"count": {
"1": 11,
"2": 2,
"3": 6,
"4": 2,
"5": 1
}
},
"daily": {
"start_date": "2018-09-01",
"end_date": "2018-09-30",
"stats": [
{
"total": 9,
"average": 2.4444444444444446,
"count": {
"3": 4,
"1": 3,
"2": 1,
"5": 1
}
},
{
"total": 1,
"average": 1.0,
"count": {
"1": 1
}
},
{
"total": 1,
"average": 1.0,
"count": {
"1": 1
}
}
]
}
},
"metadata": {
"request": {
"path": "/applications/454638411/reviews/filter/stats.json",
"store": "ios",
"params": {
"country": "us",
"min_rating": 1,
"max_rating": 5,
"start_date": "2018-09-01T00:00:00+00:00",
"end_date": "2018-09-30T00:00:00+00:00",
"term": "bug",
"id": "454638411",
"format": "json"
},
"performed_at": "2018-11-20 14:19:09 UTC"
},
"content": {
}
}
}