Trouble using the Inventory Endpoint

Hello, I hope you are doing well.

I am currently trying to get the inventory of a player, specifically all their passes using Roblox’s endpoint.

I have tried using the roblox Inventory Endpoint (Inventory v2 | Documentation - Roblox Creator Hub) like so:

https://inventory.roblox.com/v2/users/53252551/inventory/34

I also tried using the multiple assetTypes using this:

https://inventory.roblox.com/v2/users/53252551/inventory?assetTypes=34

But both give me the strange following error: {"errors":[{"code":2,"message":"Invalid asset type Id."}]}, despite them documenting that “34” is a valid integer:

I have also tried scraping the endpoint directly using the Chrome Developer Tools, and got this endpoint instead:

https://apis.roblox.com/game-passes/v1/users/53252551/game-passes?count=100

But this one is less convenient, since it does not use cursors.

Edit: I later found out the “GamePass and Badges not allowed.” for the Inventory Api. Is there any other endpoints I can use then other than the one mentioned above?

use the gamepass one you found and instead of cursors you can use &exclusiveStartId= which is the gamePassId of the last gamepass in the response

2 Likes

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