How do I get UniverseId from PlaceId? (ROBLOX API)

Hello,

Recently, I have been struggling to get a game’s UniverseID from PlaceID via HttpService.

At first, I have tried two methods:

  1. Using MarketplaceService:GetProductInfo() but the problem is that there is no UniverseID included in the information received

  2. Using :arrow_down: and again the problem is that this API requires an Authenticated User to work therefore I get this error: HTTP 401 (Unauthorized)

 HttpService:GetAsync("https://games.rprxy.xyz/v1/games/multiget-place-details?placeIds="..placeId

Afterwards, I decided to look in the DevForum for answers and I found two posts which didn’t provide any definitive answers

and

So, now I am making a Post regarding about this and any Help would be useful, Thanks. :smiley:

38 Likes

Why do you need the UniverseId?

6 Likes

New correct URL is here:

https://api.roblox.com/universes/get-universe-containing-place?placeid=[PLACEID]

This will get you a table with just the universe Id, which you just have to do Data.UniverseId to get. You do not need to be signed in to use this API I don’t believe, which is what multiget-place-details requires you to do.

72 Likes

Thank you so much for the help, I have been struggling to do this for hours.

game.GameId stores the current place’s universe ID.

https://developer.roblox.com/en-us/api-reference/property/DataModel/GameId

10 Likes

Trust check failed it says, are you sure it works?

Yes, I am very sure it works. I’m using it on a project of mine and it’s still functional so ¯\(ツ)

(https://api.roblox.com/universes/get-universe-containing-place?placeid=)
or through the studio
(UniverseID code - Roblox)

That script just changes a value to game.GameId

1 Like

Roblox has recently deprecated this, any other solutions?

1 Like

Try looking at the new apis, I believe they are included in the official docs.

https://apis.roblox.com/universes/v1/places/PLACEID/universe

replace PLACEID with the actual place id

31 Likes

The simple solution is game.GameId

1 Like

You need the universe ID for audios. Reason why is that Roblox audios are not public anymore. What
essentially means is that the original owners of audio files can still use those audios in their games, but other developers who used to be able to access each other’s audios freely will be forbidden from doing so anymore. This effectively puts an end to the “Creator Marketplace” dynamic of the platform.

3 Likes

Yeah that is definitely the current solution. Thanks.

1 Like

Unfortunately this no longer works when used in the browser, solution?

Use https://apis.roblox.com/universes/v1/places/[PLACEID]/universe instead, like this post above said:

3 Likes

I tried and it doesnt work. Any new link?

Use https://apis.roblox.com/universes/v1/places/[BPLACEID]/universe like I said in the post just above yours

4 Likes