Getting app version status
This method allows retrieving basic app info, as well as checking the version status.
Key Points to Note:
- Note that 20 versions are displayed on each page by default, you can display up to 100 versions per page by specifying a value in the
size
parameter; - You cannot use pagination and filtering parameters together according to version 1 (or pagination with a pair of parameters
page
andsize
orids
).
Interaction parameters
GET
https://public-api.rustore.ru/public/v1/application/{packageName}/version?ids=704095&page=0&size=2
Attribute | Type | Required | Location | Description | Example |
---|---|---|---|---|---|
Public-Token | string | Yes | header | Access token to Public API Rustore. | N/A |
packageName | string | Yes | path | App package name | com.myapp.example |
ids | number | No | query | version id . Set if necessary to obtain a specific version. | 743103 |
page | number | No | query | Page No. Starts from 0 . | 0 |
size | number | No | query | Number of reviews on the page. • Default — 20 . • Maximum — 100 . | 100 |
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 |
---|---|---|---|---|
content[] | massive | Yes | Arry with a list of versions | N/A |
pageNumber | number | Yes | Current page number | 0 |
pageSize | number | Yes | Page size | 2 |
totalElements | number | Yes | Total items | 5 |
totalPages | number | Yes | Total pages | 3 |
body.content[]
Attribute | Type | Required | Description | Example |
---|---|---|---|---|
versionId | number | Yes | Versionid . | 704372 |
appName | string | Yes | App name | Test API |
appType | string | Yes | App type | MAIN or GAME |
versionName | string | Yes | Version number | 1.0 |
versionCode | number | Yes | Version code | 6 |
versionStatus | string | Yes | Version status | Available values: • ACTIVE – published; • PARTIAL_ACTIVE – published for a specific share of users; • READY_FOR_PUBLICATION – approved by a moderator; PREVIOUS_ACTIVE • ARCHIVED • REJECTED_BY_MODERATOR • TAKEN_FOR_MODERATION • MODERATION • AUTO_CHECK • AUTO_CHECK_FAILED • DRAFT • DELETED_DRAFT ; • REJECTED_BY_SECURITY . |
publishType | string | Yes | Publication type | Available values • MANUAL ; • INSTANTLY ; • DELAYED . |
publishDateTime | timestamptz | Yes | Date and time for delayed publication | 2023-08-04T09:36:06.431+00:00 |
sendDateForModer | timestamptz | Yes | Submission date | 2023-08-11T12:03:06.303+00:00 |
partialValue | number | Yes | Percentage for partial publication | -1 = 100% all other values are consistent |
whatsNew | string | Yes | What's new? | Bugs fixed |
priceValue | number | Yes | Price if the app is paid | 0 |
paid | boolean | Yes | Is the application paid? | true /false |
Possible statuses
ACTIVE
— published;PARTIAL_ACTIVE
— partically published, availbale to a certain % of users;READY_FOR_PUBLICATION
— approved by a moderator;PREVIOUS_ACTIVE
— previous active version;ARCHIEVED
— archieved version;REJECTED_BY_MODERATOR
— version rejected by moderator;TAKEN_FOR_MODERATION
— version taken by moderator;MODERATION
— awaiting moderation;AUTO_CHECK
—.apk
auto check by Kaspersky;AUTO_CHECK_FAILED
—.apk
auto check failed;DRAFT
— draft version;DELETED_DRAFT
— draft deleted;REJECTED_BY_SECURITY
— version rejected by security officer.
Request example
curl --location 'https://public-api.rustore.ru/public/v1/application/com.example.pblsh_v2/version?page=0&size=2' \
--header 'accept: application/json' \
--header 'Public-Token: {YOURtoken}’
Response example
{
"code": "OK",
"message": null,
"body": {
"content": [
{
"versionId": 704372,
"appName": "Test API",
"appType": "MAIN",
"versionName": "1.0",
"versionCode": 6,
"versionStatus": "ACTIVE",
"publishType": "MANUAL",
"publishDateTime": "2023-08-14T12:34:43.925+00:00",
"sendDateForModer": "2023-08-11T12:03:06.303+00:00",
"partialValue": -1,
"whatsNew": "Bugs fix",
"priceValue": 0,
"paid": false
},
{
"versionId": 704197,
"appName": "PO test API",
"appType": "MAIN",
"versionName": "1.0",
"versionCode": 1,
"versionStatus": "PREVIOUS_ACTIVE",
"publishType": "INSTANTLY",
"publishDateTime": "2023-08-04T09:36:06.431+00:00",
"sendDateForModer": "2023-08-04T09:20:23.551+00:00",
"partialValue": -1,
"whatsNew": "First version",
"priceValue": 0,
"paid": false
}
],
"pageNumber": 0,
"pageSize": 2,
"totalElements": 2,
"totalPages": 1
},
"timestamp": "2023-08-02T10:38:50.413186769+03:00"
}