Guest User

Untitled

a guest
Aug 12th, 2023
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    (async function() {
  2.  
  3.    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
  4.  
  5.   for (let i=0;i<times;i++) {
  6.     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
  7.         method: 'POST',
  8.       headers: {
  9. 'Host': 'api.lootboy.de',
  10. 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0',
  11. 'Accept': 'application/json',
  12. 'Accept-Language': 'en',
  13. 'Accept-Encoding': 'gzip, deflate, br',
  14. 'content-type': 'application/json',
  15. 'authorization': 'YOUR BEARER CODE',
  16. 'Origin': 'https://www.lootboy.de',
  17. 'DNT': '1',
  18. 'Connection': 'keep-alive',
  19. 'Sec-Fetch-Dest': 'empty',
  20. 'Sec-Fetch-Mode': 'cors',
  21. 'Sec-Fetch-Site': 'same-site',
  22. 'Content-Length': '0',
  23. 'TE': 'trailers'},
  24. "body": "{\"application\":\"web\",\"vendor\":\"internal\",\"vendorData\":{},\"paymentData\":{},\"useFallback\":false,\"bundle\":\"x25\"}" //you can change x25 to x1 x5 x10
  25.     })
  26.  
  27.     const data = await response1.json();
  28.  
  29.     console.log(data);
  30.   }
  31.  
  32. })();
Advertisement
Add Comment
Please, Sign In to add comment