Skip to content

Instantly share code, notes, and snippets.

@baltpeter
Created June 16, 2022 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baltpeter/97a5a921ee52253a96b7e546e41c4f4c to your computer and use it in GitHub Desktop.
Save baltpeter/97a5a921ee52253a96b7e546e41c4f4c to your computer and use it in GitHub Desktop.
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