Application Ratings History

GET 2 Credits / Request + 1 Credit / Request / 30 days /android/applications/{APPLICATION_ID}/ratings-history.json

Application Ratings History allows you to fetch the evolution of the star-rating of an app over time

Please note that the most recent rating of an app can be found in the metadata request. This request is intended to perform calculations on the evolution of this rating over time.

Application Ratings Request

Header parameters
X-AppTweak-Key:
Your AppTweak API Key.
Path parameters
APPLICATION_ID:
Application ID for which you want to get the metadata.
Query parameters
start_date: date

Start date, format: YYYY-MM-DD

end_date: date

End date, format: YYYY-MM-DD

GET /android/applications/{APPLICATION_ID}/ratings-history.json

Request example
GET /android/applications/com.king.candycrushsaga/ratings-history.json?start_date=2018-11-10&end_date=2018-11-15
cURL example
curl -X GET -H "X-Apptweak-Key: ${API_KEY}" https://api.apptweak.com/android/applications/com.king.candycrushsaga/ratings-history.json?start_date=2018-11-10&end_date=2018-11-15

Application Ratings History Response

The response to the application ratings history request is a hash specifying the start and end date of the selected time period and an array containing one entry per day in the period.

The first object of the array correspond to the start_date, the second to the day following the start_date and so on. The last object corresponds to the end_date.

Object properties
start_date: string

The detected start date of the period.

end_date: string

The detected end date of the period.

ratings: array

An ordered list of objects, Each objects contains the number of 1,2,3,4 and 5 stars votes, the total number of votes, and the average score of the app.

Response Example

{
  "content": {
    "ratings": [
      {
        "1": 1101151,
        "2": 537965,
        "3": 1506217,
        "4": 4136952,
        "5": 16249757,
        "total": 23532042,
        "avg": 4.44
      },
      {
        "1": 1101381,
        "2": 538064,
        "3": 1506829,
        "4": 4138862,
        "5": 16259831,
        "total": 23544967,
        "avg": 4.441
      },
      {
        "1": 1101608,
        "2": 538164,
        "3": 1507475,
        "4": 4140878,
        "5": 16269799,
        "total": 23557924,
        "avg": 4.441
      },
      {
        "1": 1101805,
        "2": 538231,
        "3": 1508041,
        "4": 4142828,
        "5": 16279635,
        "total": 23570540,
        "avg": 4.441
      },
      {
        "1": 1101976,
        "2": 538305,
        "3": 1508521,
        "4": 4144611,
        "5": 16288550,
        "total": 23581963,
        "avg": 4.441
      },
      {
        "1": 1102138,
        "2": 538385,
        "3": 1509037,
        "4": 4146344,
        "5": 16297461,
        "total": 23593365,
        "avg": 4.441
      }
    ],
    "start_date": "2018-11-10 00:00:00 +0000",
    "end_date": "2018-11-15 00:00:00 +0000"
  },
  "metadata": {
    "request": {
      "path": "/applications/com.king.candycrushsaga/ratings-history.json",
      "store": "android",
      "params": {
        "start_date": "2018-11-10T00:00:00+00:00",
        "end_date": "2018-11-15T00:00:00+00:00",
        "id": "com.king.candycrushsaga",
        "format": "json"
      },
      "performed_at": "2018-11-27 01:30:43 UTC"
    },
    "content": {
    }
  }
}