Android App First Download URL
API Description: Download the corresponding version based on the version number. If no version number is provided, it defaults to the latest version.
When users download the app for the first time, they need to download the latest version. This API request URL is fixed. If no version number is provided, it automatically gets the latest uploaded version, which can be placed in a fixed download button.
📮Request Information
Request URL
GET https://api.upgrade.toolsetlink.com/v1/apk/download?fileKey=isVZBUvkFhv6oHxk_X-D0Q&versionCode=1
Request Parameters
| Parameter Name | Required | Type | Example Value | Description |
|---|---|---|---|---|
| apkKey | Yes | string | isVZBUvkFhv6oHxk_X-D0Q | Unique identifier for Android app |
| versionCode | No | int | 1 | App version code. If not provided, the latest version will be obtained |
📮Response Information
Success
Directly downloads the installation package
Typical Error Response
json
{
"code": 404001,
"msg": "No available version found",
"docs": "No corresponding app version found. Please confirm if it has been correctly created in the system. Please refer to the documentation: http://upgrade.toolsetlink.com/upgrade/recommend/apk/app-version.html",
"data": null
}📊Status Codes
| HTTP Status Code | code | Scenario Description | Solution |
|---|---|---|---|
| 200 | Direct file download | ||
| 400 | 400001 | Invalid request | |
| 400 | 400002 | Missing parameters | |
| 400 | 400003 | Invalid parameters | |
| 400 | 400004 | Invalid header | |
| 400 | 400005 | Invalid body | |
| 401 | 401001 | Authentication failed | |
| 401 | 401002 | Signature verification failed | |
| 404 | 404001 | Resource not found | |
| 404 | 404002 | Record not found | |
| 404 | 404003 | Processing method not found | |
| 404 | 404004 | Request not found | |
| 500 | 500001 | Internal server error | Contact us Contact Us |
| 500 | 500002 | Internal server data validation failed | Contact us Contact Us |