how would i use it in script tho?
It should return like any other API.
This is PlaceId. To get the GameId you need to do this:
local http = game:GetService("HttpService")
local data = http:JSONDecode(http:GetAsync("https://apis.roproxy.com/universes/v1/places/142823291/universe"))
print(data.universeId) --> GameId is 66654135
And use a proxy if you are accessing roblox servers. (replace roblox
to roproxy
)
2 Likes
https://games.roblox.com/docs#!/Games/get_v1_games_multiget_place_details is an alternative that is more reliable, but requires a token.
this solution works, thx for help
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.