Previously I used api.roblox
and get-universe-containing-place
to retrieve the UniverseId of a an experience within a live server:
Proxy:Get(("https://api.roblox.com/universes/get-universe-containing-place?placeid=%s"):format(game.PlaceId))
This will soon be removed though:
Hi developers,
In order to increase the reliability of our platform and improve scalability, we are migrating endpoints away from the monolithic api.roblox.com web API.
Beginning on July 15, 2022, we will start removing individual API endpoints from api.roblox.com. All endpoints are scheduled to be removed by the end of the year.
We recommend switching to newer endpoints on the apis.roblox.com or individual APIs (avatar.roblox.com , games.roblox.com , etc).
Please update any tools, browser pl…
I explored games.roblox
and multiget-place-details
…
Proxy:Get(("https://games.roblox.com/v1/games/multiget-place-details?placeIds=%s"):format(game.PlaceId))
… however receive the following error:
How can I fix this?
You need to authenticate with a roblosecurity cookie.
kalabgs
(FartFella)
May 19, 2022, 4:17pm
#3
you are not allowed to get the universeId of a game, you can only access it trough your browser using roblox.com (proxies dont work)
You can, using https://api.roblox.com/universes/get-universe-containing-place?placeid=%s
.
I’m looking for an alternative as this is soon-to-be deprecated. We use various test places so we need to retrieve the UniverseId in-game to scale effectively.
kalabgs
(FartFella)
May 19, 2022, 4:52pm
#5
Im very sure that you cant access roblox.com using https, since it will trust check fail.
These calls are made via our proxy. The top example has been working fine for years for instance. I’m now looking for an alternate method now that api.roblox
is deprecated.
Are you trying to get the Universe ID of the current running place, or some other place ID?
1 Like
Within game servers and retrieving its UniverseId via a Script, so the current running place.
In an ideal world there would be a data model property like game.UniverseId
, similar to game.PlaceId
.
Have you considered using game.GameId
instead? This should return the UniverseId of the current running game server.
Documentation:
1 Like