Created
June 16, 2022 21:04
-
-
Save baltpeter/97a5a921ee52253a96b7e546e41c4f4c to your computer and use it in GitHub Desktop.
Play Store batchexecute request for top charts, cleaned up (step 2)
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
import fetch from 'cross-fetch'; | |
(async () => { | |
const language = 'en'; | |
const country = 'de'; | |
const length = 2; | |
const chart_name = 'topselling_free'; | |
const category_id = 'APPLICATION'; | |
const res = await fetch(`https://play.google.com/_/PlayStoreUi/data/batchexecute?hl=${language}&gl=${country}`, { | |
headers: { | |
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', | |
}, | |
body: `f.req=${JSON.stringify([ | |
[ | |
[ | |
'vyAe2', | |
JSON.stringify([[null, [[null, [null, length]], null, null, [113]], [2, chart_name, category_id]]]), | |
], | |
], | |
])}`, | |
method: 'POST', | |
}).then((r) => r.text()); | |
console.log(res); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment