MarketplaceService:GetAssetInfo doesn't work on game passes- any alternative?

Since game passes no longer seem to work as assets, is there any way to get the asset information such as price and thumbnail from a game pass? I don’t want to hard-code things like the price into my game as I’d have to update the game to reflect any changes to the pricing of these assets.

Historically I used this method to gather this information, but with the changes to game passes, it doesn’t seem to work. I didn’t see any similar method in GamePassService.

GetProductInfo takes a second parameter that specifies the type of item you are requesting information about.

https://www.robloxdev.com/api-reference/enum/InfoType

MarketplaceService:GetProductInfo ( int64 assetId , InfoType infoType )

2 Likes

https://www.roblox.com/Thumbs/Asset.ashx?width=110&height=110&assetId=IDHERE

Also works for other Assets like Models, Catalog items and such


I’m not sure if that’s still working or not

It was working before the Gamepass Update and then it didn’t and then it did and then it didn’t so I have no idea if it does or does not atm

GetProductInfo did seem like it worked at some point I have no idea it was months ago

But the Wiki states

For developer products, this is the asset ID of the product’s icon (or 0 if the product does not have one)

(I would like to know which method works, if you don’t mind replying)

Lots Of Links

Gamepass Icon via Script (Without Uploading Decals) - #5 by RuizuKun_Dev

API for retrieving gamepass icons

[Live] Changes to Game Passes - #91 by Beartikal

Getting the icon of a gamepass

Gamepass images