Assuming I have access to an avatar bundle id, is there an API endpoint to get a list of all user owning an item in a paginated manner?
You can check if a specific player owns a bundle with MarketplaceService:PlayerOwnsBundle(player, bundleId)
There isn’t a way to see all the players on roblox that own a specific bundle, that’ll either be a very long list and it’s quicker to check if a specific player owns a bundle rather than filtering through a giant table.
I’m looking for a paginated way that many other APIs use. Basically it returns a number of results(for example 100) and a cursor, per request. If you pass in the cursor to the next request you make, it returns the next 100 results.
I’m interested to see if something like that exists but for people who own a specific bundle.
I managed to find the following endpoint:
https://inventory.roblox.com/v2/assets/{assetId}/owners
That accepts asset ids, asset ids can be fetched from the bundle by calling the endpoint:
https://catalog.roblox.com/v1/bundles/{bundleId}/details
and giving it all the items that are part of the bundle and are of type Asset(for example arms and legs).
However I have run into an issue, each time I try to call the API I get the error "You do not have permission to view the owners of this asset."
. Exactly which assets we have permission to view the owners of? Also are there any other endpoints that are useful for this?