Getting Application Rating
This method allows obtaining an app rating.
Interaction parameters
POST
https://public-api.rustore.ru/public/v1/application/{packageName}/comment/statistic
Attribute | Type | Required | Location | Description | Example |
---|---|---|---|---|---|
Public-Token | string | Yes | header | Access token to API RuStore. | N/A |
packageName | string | Yes | path | App package name Maximum length: 50 characters | com.myapp.example |
Response example
Attribute | Type | Required | Description | Example |
---|---|---|---|---|
code | string | Yes | Response code | error /OK |
message | string | No | Decoded response code | N/A |
timestamp | timestamptz | Yes | Response time | 2022-07-08T13:24:41.8328711+03:00 |
body{} | object | Yes | N/A | N/A |
body
Attribute | Type | Required | Description | Example |
---|---|---|---|---|
raitings | object | Yes | N/A | N/A |
averageUserRating | number | Yes | Average user rating | 4 |
totalRatings | number | Yes | Total number of ratings. | 0 |
totalResponses | number | Yes | ||
Total number of ratings without reviews. | 0 | |||
ratingsNoComments | number | Yes | Total number of evaluations without reviews. | 0 |
raitings
Attribute | Type | Required | Description | Example |
---|---|---|---|---|
amountFive | number | Yes | Total 5-star rates | 0 |
amountFour | number | Yes | Total 4-star rates | 3 |
amountThree | number | Yes | Total 3-star rates | 0 |
amountTwo | number | Yes | Total 2-star rates | 0 |
amountOne | number | Yes | Total 1-star rates | 0 |
Request example
curl --location 'https://public-api.rustore.ru/public/v1/application/ru.voonsh.push/comment/statistic' \
--header 'Public-Token: eyJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiUlNBLU9BRVAtMjU2In0.1r3cxOdxuNpypJSWXMQ4oAVYhqh6_3RlqKfItkhthhTzisiRYnboOkZpw_r5J9w0S5G8u-BexQeganyoG3MbCJ5QP2X6945wQMxlPkl81UKewkZuFrjsH36USk6dnnMbjT8Yw8nA4Yr0n8Oinspj3zkw66kZd-57EJvoMfneCEyTBY1mYEoc2DnfUa99syX1kIgX7Jfipn4yRm3pxWad5aesCK3eQFlP57CBirm8qGecDzkKcV1DeBx-qXK1S72FaXId11zN-rbe14U1z8jCCiEHhYrTIT9ci7OKF7OqF2kgRRVdCoO3eRWl4JWF-JfGAeYcv7rEpNLC32pEm5FOCA.khXZSeTodz2mVoNd.fKVjmkHUEM9AW7S_mYf-LFO4T26Lqf4RNSyjyNmFfsxZybDKahZgnaJ4lXYq-MPVN-o39eg1jISmoJcBonqS-0rIFe1P3CAM5cbNiSsTCX1r-cVdf4ei998KKGMg8bZL24-uLfxgcJSBBTgmUkyvf_KqH_dcxmQ.DwbK_08RLgHibat3h5dvkQ'
Response example
{
"code": "OK",
"message": null,
"body": {
"ratings": {
"amountFive": 13,
"amountFour": 2,
"amountThree": 0,
"amountTwo": 0,
"amountOne": 0
},
"averageUserRating": 4.87,
"totalRatings": 15,
"totalResponses": 9,
"ratingsNoComments": 4
},
"timestamp": "2023-06-15T08:35:06.412194896+03:00"
}