Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (async function() {
- let times = 28; //how many times to buy the specified pack, if you have something else than x1 set on line 27 then multiply your x by how many times you enter here, i.e. x25 * 28 = 700 packs will be bought provided you have enough currency
- for (let i=0;i<times;i++) {
- const response1 = await fetch('https://api.lootboy.de/v1/loots/PACK_ID/bundle-purchase?lang=en', { //replace PACK_ID with the ID of the pack, it's in the link
- method: 'POST',
- headers: {
- 'Host': 'api.lootboy.de',
- 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0',
- 'Accept': 'application/json',
- 'Accept-Language': 'en',
- 'Accept-Encoding': 'gzip, deflate, br',
- 'content-type': 'application/json',
- 'authorization': 'YOUR BEARER CODE',
- 'Origin': 'https://www.lootboy.de',
- 'DNT': '1',
- 'Connection': 'keep-alive',
- 'Sec-Fetch-Dest': 'empty',
- 'Sec-Fetch-Mode': 'cors',
- 'Sec-Fetch-Site': 'same-site',
- 'Content-Length': '0',
- 'TE': 'trailers'},
- "body": "{\"application\":\"web\",\"vendor\":\"internal\",\"vendorData\":{},\"paymentData\":{},\"useFallback\":false,\"bundle\":\"x25\"}" //you can change x25 to x1 x5 x10
- })
- const data = await response1.json();
- console.log(data);
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment