Is the Inventory API broken? (Asset Type ID invalid)

I tried to find a way to get a player’s assets, such as shirts or gamepasses, however, when I use the Inventory API to try to get a player’s collections or do anything that requires and asset type ID, I receive this error:

{
  "errors": [
    {
      "code": 3,
      "message": "Specified asset type is invalid!",
      "userFacingMessage": "Something went wrong",
      "field": "assetType"
    }
  ]
}

This seems to be a problem with the actual API and not any proxy, as attempting it with an HTTP request from my computer, from roblox’s own API documentation site, or from a proxy all result in that error.

Is this a bug with the API system or has roblox changed this part of the API recently? I don’t think it’s the latter, since the documentation site for the inventory API only allows a multiple choice answer:


This is intentional, as GamePasses and Shirts can not be added to collections. For GamePasses, use www.roblox.com/users/inventory/list-json?userId=USER_ID&assetTypeId=34 until there’s a full replacement (open cloud?). For shirts, you can just use the endpoint in Inventory V2

The enum is derived from Roblox’s site-wide Asset Type enum, when an asset type is listed in API documentation, it does not actually mean it’s supported.

1 Like

Oh thank you, that is what I was looking for. I thought it was the same endpoint.

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