'I need help receiving the data from an api every min (looping it)

Im trying to loop the part fetching the reference from the api, there really isn't an error but i couldn't find the correct way to loop it and needed help

pastebin: https://paste-bin.xyz/46617 (sorry couldn't paste the code here idk why)

I just need help looping the part fetching info and i want it to have the value of gameType and Mode form the api every x seconds



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source