I’m making a game that gets a certain group’s games. And I really don’t know how to get them using a script. I’ve tried to use: game.HttpService:GetAsync('https://games.roblox.com/v2/groups/GROUP_ID/games?accessFilter=2&limit=10&sortOrder=Asc')
But it says that it doesn’t have acces to ROBLOX resources… Is there another way to get them?
For proxies I recently made a post on how to make your own in about 10 minutes all you would need to do is send a http get request like
local https = game:GetService('HttpService')
local ProxyUrl = "ProxyNameHere".."?link="
local GroupId = groupId
local Url = "games.roblox.com/v2/groups/"..GroupId.."/games?accessFilter=2&limit=10&sortOrder=Asc"
local EncodedUrl = https:UrlEncode(Url)
local Response = https:GetAsync(ProxyUrl..EncodedUrl)
Response = https:JSONDecode(Response)
print(Response)
It helped a lot! But it says that something went wrong with the request… I’ve tried this code
local Http = game:GetService('HttpService')
local Encode = Http:UrlEncode('www.roblox.com/games.roblox.com/v2/groups/Group_Id/games?accessFilter=1&limit=10&sortOrder=Asc')
local Link = "https://feline-granite-beat.glitch.me/?link="..Encode
print(Link)
print(Http:JSONDecode(Http:GetAsync(Link)))
Also I didn’t forget to put group id.
Then this error appears again:
Something went wrong AxiosError: Request failed with status code 401 https:///games.roblox.com/v2/groups/GROUP ID/games?accessFilter=1&limit=10&sortOrder=Asc
is this the link that i should use for getting the group games: Swagger UI ?
local Http = game:GetService('HttpService')
local Encode = Http:UrlEncode('games.roblox.com/v2/groups/GROUP/games?accessFilter=1&limit=10&sortOrder=Asc')
local Link = "https://feline-granite-beat.glitch.me/?link="..Encode
print(Link)
print(Http:JSONDecode(Http:GetAsync(Link)))
Hey @Zacus57, You are not allowed to use any *.roblox.com/* URLs as HTTP requests inside of Roblox games, right now the only way of doing this is using a Proxy that you can setup with Heroku (or of course other hosting services or even manually) or use already hosted Proxies such as RoProxy (RoProxy is open source meaning you can also host this Proxy yourself)
also, Roblox is working on allowing certain Roblox APIs to be allowed in games!
Just so you know as it is a free platform the website’s can go inactive until recalled on meaning there might be a 20 second delay if you don’t do it for a while and you have to be wary of rate limits on your acc and roblox in general