GetProductInfo() on Game Pass ID?

Before the changes which were done to Game Passes on the 18th of April 2018, Game Passes had an AssetId which meant that you could use the Marketplace Service to GetProductInfo() of the given AssetId.

[LIVE] Changes to Game Passes (April 2018)

Hence, I am now trying to figure out how to detect an id to be a non-legacy gamepass and get info on that gamepass, specifically the Name and Image, however, understandably since gamepasses now have their own GamePassId, GetProductInfo() cannot be applied in this case.

Does Roblox have a solution for this problem?

https://developer.roblox.com/api-reference/class/GamePassService

5 Likes

You can use MarketplaceService:GetProductInfo, I believe. Pass Enum.InfoType.GamePass as its second argument.

7 Likes

Use MarketplaceService:GetProductInfo(GamepassID, Enum.InfoType.GamePass)

25 Likes