Inventory API not working with gamepasses?

Hi!
I’m trying to get a player’s gamepasses by checking their inventory. I used this endpoint:

https://inventory.roproxy.com/v2/users/{userId}/inventory/34?limit=10

Since 34 is the asset type ID for gamepasses, I expected it to return their passes.
But it always gives me an error saying the asset type ID is invalid.

When I use other asset types (like 2 for T-Shirts), it works perfectly.

Is it normal that the inventory API doesn’t support gamepasses? And if so, what’s the correct way to get all gamepasses a user owns/created?

Thanks in advance!

You can’t get all gamepasses owned by a user

The inventory API page explicitly says that that api can’t be used for gamepasses and badges:

I’ve had a look around, but haven’t found much in terms of alternatives.

One post says you can try https://apis.roblox.com/game-passes/v1/users/USERID/game-passes?count=100, however you would need to find a proxy for it

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