The resource path of the inventory item.
Format: users/{user_id}/inventory-items/{inventory_item_id}.
Represents an item in a user's inventory.
The resource path of the inventory item.
Format: users/{user_id}/inventory-items/{inventory_item_id}.
Populated if this item is an asset.
Populated if this item is a badge.
Populated if this item is a game pass.
Populated if this item is a private server.
The time when the item was added to the user's inventory. For example, the time when the user purchased a private server or was awarded a badge.
This field is currently not populated for passes. This string is formatted as a Timestamp.
https://apis.roblox.com
{
"path": "users/123/inventory-items/some-inventory-item-id",
"assetDetails": {
"assetId": "12928981934",
"inventoryItemAssetType": "INVENTORY_ITEM_ASSET_TYPE_UNSPECIFIED",
"instanceId": "173413781720",
"collectibleDetails": {
"itemId": "521cca19-75bb-4e05-a0af-633b1532c24d",
"instanceId": "a8a27d38-ee51-4cf4-8b0a-485d0dfd8607",
"instanceState": "COLLECTIBLE_ITEM_INSTANCE_STATE_UNSPECIFIED",
"serialNumber": 160
}
},
"addTime": "2023-07-05T12:34:56Z"
}
List the inventory items in a user's inventory.
The inventory items returned depend on the target user’s choice under Settings > Privacy > Who can see my inventory?:
Rate Limits:
The user ID.
The maximum number of inventory items to return. The service might return fewer than this value. If unspecified, at most 10 inventory items are returned. The maximum value is 100 and higher values are set to 100.
A page token, received from a previous call, to retrieve a subsequent page.
When paginating, all other parameters provided to the subsequent call must match the call that provided the page token.
This field may be set in order to filter the resources returned.
See the filtering documentation for more information.
A list of InventoryItems in the parent collection.
The InventoryItems from the specified User.
A token that you can send as a pageToken parameter to retrieve the next page. If this field is omitted, there are no subsequent pages.
curl -L -X GET 'https://apis.roblox.com/cloud/v2/users/{user_id}/inventory-items?maxPageSize=10&pageToken={string}&filter={string}' \
-H 'x-api-key: {your-api-key}'
{
"inventoryItems": [
{
"path": "users/123/inventory-items/some-inventory-item-id",
"assetDetails": {
"assetId": "12928981934",
"inventoryItemAssetType": "INVENTORY_ITEM_ASSET_TYPE_UNSPECIFIED",
"instanceId": "173413781720",
"collectibleDetails": {
"itemId": "521cca19-75bb-4e05-a0af-633b1532c24d",
"instanceId": "a8a27d38-ee51-4cf4-8b0a-485d0dfd8607",
"instanceState": "COLLECTIBLE_ITEM_INSTANCE_STATE_UNSPECIFIED",
"serialNumber": 160
}
},
"addTime": "2023-07-05T12:34:56Z"
}
],
"nextPageToken": "string"
}