How do you get a player's limited inventory?

This is for a trading hangout just like the aptly named Trade Hangout.
image
(Screenshot from trade hangout)
I haven’t seen an API that gets only limiteds, can someone help me? I need to display this on my game. (Don’t worry about getting the blue number [aka Rolimon’s values]).

4 Likes

You could use an API to get all items and then display only limiteds and limitedu items.

you would have to use these links to grab item data (in the form of a JSON string array) simply parse through the string and identify whatever you need.

this service below should help you convert the JSON string array into a lua table, so you can use them in your scripts.

https://developer.roblox.com/en-us/api-reference/function/HttpService/JSONDecode

This api gathers just limiteds:
https://inventory.roblox.com/docs#!/Inventory/get_v1_users_userId_assets_collectibles

Using it looks like this:
https://inventory.roblox.com/v1/users/13936322/assets/collectibles?assetType=Hat&sortOrder=Asc&limit=100

You can also filter through this, which will return non-collectible items as well:
https://inventory.roblox.com/docs#!/Inventory/get_v2_users_userId_inventory_assetTypeId

It’s worth mentioning that the first two are part of the v1 api and may not be maintained in the future. A few other endpoints on that page have been deprecated.

9 Likes