What is alternative of MarketplaceService:GetProductInfo?

Recently, the MarketplaceService:GetProductInfo API was marked as deprecated, but there’s no alternative linked there.

Is there any alternative way to get asset info, especially Remaining/Price/Description?
For free UGC Remaining is matter for player as well as developer.

2 Likes

MarketplaceService:GetProductInfoAsync()

1 Like

There’s no such API. Where did you get that from?

1 Like

I typed it into studio and it auto completed it, with all its parameters etc

1 Like

Oh, then Roblox might be working on docs right now.
There are a lot of API refreshes with an “Async” suffix, so it should be one of them.

It’s good to know thanks!

The Async method exists in the documentation for me:
https://create.roblox.com/docs/reference/engine/classes/MarketplaceService#GetProductInfoAsync

Edit: It just magically disappeared

But yeah if you see any of your methods being depricated, try adding Async behind it and see if it auto completes

Then why does the following line run?

print(game.MarketplaceService:GetProductInfoAsync(144076358).Name)

Test APIs before claiming that they don’t exist.

As I said above, it seems like an issue of docs not API.

most of yielding functions were renamed to include Async at the end

This posts explains it, so let me mark this as solved. Missing documentation for `MarketplaceService:GetProductInfoAsync`

1 Like

I’m very happy to see improved communication within the Roblox API. Normalizing suffixing yielding functions with “async” is a must

I know, right? It’s really weird. I noticed the output of one of the games I work on where I used the new Async versions kept giving “not a valid member errors”, despite the deprecation that’s showing up in studio.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.