Skip to content

Instantly share code, notes, and snippets.

@baltpeter
Created June 16, 2022 21:04
Embed
What would you like to do?
Play Store batchexecute request for top charts, cleaned up (step 2)
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