Problem with MarketplaceService

Hello, I’m making a game called Gamepass Checker. But, for some reasons when I try to get sales of a gamepass; it returns as 0 even if a lot of people have bought it.

local market = game:GetService("MarketplaceService") 
local infos = market:GetProductInfo(3799308,Enum.InfoType.GamePass) 
local sales = infos.PriceInRobux print(infos.Sales)

I forget where I saw this, but I’m pretty sure you can only get the sales of an item now if it was created by you. I wanted to confirm this, so I tried the following:

-- gamepass i didnt create
local market = game:GetService("MarketplaceService") 
local infos = market:GetProductInfo(3196348,Enum.InfoType.GamePass) 
print(infos.Sales) --> output was 0. this is literally an adopt me gamepass, i would assume more than 0 people bought it.

-- gamepass i created
local market = game:GetService("MarketplaceService") 
local infos = market:GetProductInfo(12069171,Enum.InfoType.GamePass) 
print(infos.Sales) --> output was 204.

Try this for a gamepass you created and let me know if it works for you.

Yes, it works for a gamepass that is made by me.

Unfortunately then there isn’t a way to get gamepass (any assets?) sale data unless you own it or the person requesting owns it. It’s been like this for awhile to my knowledge. To illustrate that this is Robloxs doing and intended, feel free to look at: https://catalog.roblox.com/v1/search/items/details?Category=4&SortType=0&SortAggregation=5&Limit=10

You’ll notice that the sales here are completley missing, when I remember very vividly you used to be able to get ‘purchaseCount’ here. The documentation to my knowledge still says you can, but as you can clearly see it’s nowhere to be found in the response.

Roblox hid the sales counter of assets a while back, you can only view the sales totals of assets you’ve uploaded.

Hi, sadly we can’t get ‘purchaseCount’ from there but you still helped me very much. :slight_smile: