Created
December 9, 2025 13:47
-
-
Save Mixerou/3b16a19f8198d71b2ae1690aa1b9f25e to your computer and use it in GitHub Desktop.
RuStore: Fetch APK Download Link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // We don't catch any exceptions! It's like we live in a perfect world | |
| const appJavaId = 'com.example.app' | |
| const appResponse = await fetch( | |
| `https://backapi.rustore.ru/applicationData/overallInfo/${appJavaId}`, | |
| { | |
| method: 'GET', | |
| headers: { 'content-type': 'application/json; charset=utf-8' }, | |
| }, | |
| ) | |
| const app = await appResponse.json() | |
| const downloadLinkResponse = await fetch( | |
| 'https://backapi.rustore.ru/applicationData/download-link', | |
| { | |
| method: 'POST', | |
| headers: { 'content-type': 'application/json; charset=utf-8' }, | |
| body: JSON.stringify({ | |
| appId: app.body.appId, | |
| firstInstall: true, | |
| }), | |
| }, | |
| ) | |
| const downloadLink = await downloadLinkResponse.json() | |
| console.log(`Download link for ${appJavaId}: ${downloadLink.body.apkUrl}`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment