Alternative of api.roblox get-universe-containing-place to retrieve the games UniverseId?

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:

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:

image

How can I fix this?

You need to authenticate with a roblosecurity cookie.

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.

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