I do not know how to use api’s like that though would you be able to give an example??? I looked at the first link but I did not understand it very much.
Ok I have gotten it working but the problem is it only shows the servers that would be on page 1.
I have a function to get a random jobid but there is a high likleyhood that it will pick the same ones because it is only choosing from about 10 or so as that is how many there would be on page 1 of the server list.
local GetRandomJobId = function()
local JSONDecode = HttpService:JSONDecode(Response.Body)
return JSONDecode.data[math.random(1, table.getn(JSONDecode.data))].id
end
How do I fix this as to so it picks from every single running server?
I just checked the API. Apparently, you can select the amount of servers you want to query, but the choices are only 10 (default), 25, 50, and 100. Hopefully 100 servers would be enough for you.