Skip to main content
Version: 25.03

Star Rating - Get Rating Platforms and Versions

Endpoint​

/o?method=star

Overview​

Returns the platforms and app versions for which star ratings were recorded in the requested period. Use it to fill the platform and version filters of Get Feedback Data.

Authentication​

Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.

Permissions​

Requires star_rating Read permission.

Request Parameters​

ParameterTypeRequiredDescription
methodStringYesMust be star.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.
app_idStringYesApp ID.
periodString/ArrayYesprevMonth, month, day, yesterday, hour, <number>days (for example 30days), or a custom range as a JSON array.

Examples​

Read platforms and versions of the last 30 days​

/o?method=star&
api_key=YOUR_API_KEY&
app_id=6991c75b024cb89cdc04efd2&
period=30days

Response​

Success Response​

{
"Android": [
"3:2",
"1:7"
],
"iOS": [
"1:1",
"2:5"
]
}

Response Fields​

FieldTypeDescription
<platform>Array of StringApp versions recorded for the platform. The platform name is the key.

Error Responses​

  • 400
{
"result": "Missing request parameter: period"
}
  • 400
{
"result": "Bad request parameter: period"
}

Authentication and authorization failures are returned by the common auth layer.

Behavior​

  • Returns an empty object when no ratings were recorded in the period.