I want to make a Python script that plays a sound through my mic when someone buys a game pass in my game. I have the play-through my mic part set up but I can’t find a way to use the Roblox API to get how many people own it.
Thanks, Jaydon
I want to make a Python script that plays a sound through my mic when someone buys a game pass in my game. I have the play-through my mic part set up but I can’t find a way to use the Roblox API to get how many people own it.
Thanks, Jaydon
sadly, i dont think you can do this anymore, the roblox api started hiding (i forgot but its one of the two)
they either:
total profit
OR
how many people owned it
as you can see in this api request, im using BABFT’s double gold gamepass (which i own)
and it returned 0 sales, which is completely false
(api req: https://apis.roblox.com/game-passes/v1/game-passes/2532177/product-info)
(screenshot to prove i own it)
MarketPlaceService:GetProductInfo(id, 2)
hides too by any chance?
(2 = enum value for gamepass)
edit: it does
It does work as long as you are the owner of that pass
I’m testing it on one I own it but it still comes back as “Sales”:0
When you send a request you need to pass through the cookie so the server knows it is you.
I tested it using Insomnia and it didn’t work but on the create tab for my game I looked at the network and I saw that I can get the number of sales from this API: https://apis.roblox.com/developer-analytics-aggregations/v1/details/monetization/topitems/universes/{universe ID} but it takes too long to update.