Relatively self-explanatory. I’m using HttpService to try and generate a list of every single gear on the catalog, but other things such as bundles and hats are finding their way into my list!
These hats should not, in fact, be in my list because i added the Category=5
(the one that should filter out everything but gear) parameter into my query.
This is the code I’m using.
local HttpService = game:GetService("HttpService")
local Final = {}
local URL = "https://catalog.roproxy.com/v2/search/items/details?Category=5&CreatorTargetId=1&Limit=30&Cursor="
local Data
repeat
Data = HttpService:JSONDecode(HttpService:GetAsync(URL))
for _,item in ipairs(Data.data) do
table.insert(Final,item.id)
end
URL = "https://catalog.roproxy.com/v2/search/items/details?Category=5&CreatorTargetId=1&Limit=30&Cursor="..(Data.nextPageCursor or "")
until not Data.nextPageCursor
print(Final)