If I wanted to find a random list of 10 limited items with a price in between 200 and 10,000 robux, how would I do that?
I highly recommend that you just get a large chunk of limiteds pre-added that are within that range already assuming you most likely are going to request catalog collectibles and get rate limited constantly. It would be far more efficient to write out some code which does exactly this and then just wait until you have them all added into studio and saved, Have your code check the information to make sure it’s within the range you want, and if it’s not then don’t do anything with that collectible. Else if it does then clone a “TemplateFolder” of all the information you would want on it e.g creation date pricing , total owners if not nil , naming, asset
Make a get request to the rolimon’s limiteds list and scrape their data through the results.
https://www.rolimons.com/itemapi/itemdetails
Example of data for an item:
"1028606":["Red Baseball Cap","",1402,-1,1402,-1,-1,-1,-1,-1]
Note that you would need to JSONDecode
it in order to read it with your code.
Should be something like this
local HttpService = game:GetService('HttpService')
local r = HttpService:JSONDecode(HttpService:GetAsync('https://www.rolimons.com/itemapi/itemdetails')).items
for itemId, data in pairs(r) do
-- do sumthin
end
After that, you would iterate through each item and place the item’s ID into this module’s Item
function and get the BestPrice
for that item.
Example:
local Rolimons = require(5168671797)
local Item = Rolimons.Get("Item")
local function isInRange(x, min, max)
return x > min and x < max
end
local function isItemInRange(id)
local item = Item.new(id)
local BestPrice = item and item.BestPrice
return BestPrice and isInRange(BestPrice, 200, 10000)
end
Once you do that, you would store the results in a table and do your stuff the collected data.
Just giving you something to start off. I hope this helps you!
Edit:
You could also scrape through the ItemTable page’s element on Rolimons, but that may be a tedious task.
Thank you for your responses. If I could mark both of your replies as a solution I would.