Skip to main content

Getting Application Rating

This method allows obtaining an app rating.

Interaction parameters

POST

https://public-api.rustore.ru/public/v1/application/{packageName}/comment/statistic

AttributeTypeRequiredLocationDescriptionExample
Public-TokenstringYesheaderAccess token to API RuStore.N/A
packageNamestringYespathApp package name Maximum length: 50 characterscom.myapp.example

Response example

AttributeTypeRequiredDescriptionExample
codestringYesResponse codeerror/OK
messagestringNoDecoded response codeN/A
timestamptimestamptzYesResponse time2022-07-08T13:24:41.8328711+03:00
body{}objectYesN/AN/A

body

AttributeTypeRequiredDescriptionExample
raitingsobjectYesN/AN/A
averageUserRatingnumberYesAverage user rating4
totalRatingsnumberYesTotal number of ratings.0
totalResponsesnumberYes
Total number of ratings without reviews.0
ratingsNoCommentsnumberYesTotal number of evaluations without reviews.0

raitings

AttributeTypeRequiredDescriptionExample
amountFivenumberYesTotal 5-star rates0
amountFournumberYesTotal 4-star rates3
amountThreenumberYesTotal 3-star rates0
amountTwonumberYesTotal 2-star rates0
amountOnenumberYesTotal 1-star rates0

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"
}