Catalog API | How to get all hats?

How can I get ALL hats in the catalog? Currently what I have is given to me up until page 17 of most categories. Now I know there are definitely more than 17 pages of accessories and such but I was wondering to how I could get access to the rest of the items that have not been looked at.


local url = "https://catalog.roproxy.com/v1/search/items/details?Category=13&Subcategory=20&Cursor=100_1_c1a855c2144582448bfacba5db2f7326 " --Page 17.
local data = game:GetService("HttpService"):JSONDecode( game:GetService("HttpService"):GetAsync(url))

print(data)

if data.nextPageCursor ~= nil then
	while data.nextPageCursor ~= nil do
		task.wait(0.4)
		url = "https://catalog.roproxy.com/v1/search/items/details?Category=13&Subcategory=20&Cursor=" .. data.nextPageCursor
		data = game:GetService("HttpService"):JSONDecode( game:GetService("HttpService"):GetAsync(url))
		print(url)
	end
end
2 Likes

I checked the actual Avatar Shop and there are indeed only 17 pages only. It’s because the section you were looking at was Hairs that were made by the Community Creators only.

If you want all Hairs, created by the everyone including Roblox, here is the category and subcategory (just replace the numbers) :

https://www.roblox.com/catalog?Category=4&Subcategory=20

Edit: Also above category/subcategory is just for hairs

and below is for all “Heads”. Sadly I can’t find the category specifically for hats in the avatar shop

https://www.roblox.com/catalog?Category=11&Subcategory=54

Just look at the Avatar Shop to find the category/subcategories you want

1 Like

That page as well only goes to page 17.

Exactly, looks like for hairs there are only 17 pages too.

Solution:

https://www.roblox.com/catalog?Category=11&Subcategory=54

Use the Category/Subcategory for all “Heads” above and filter the hats by checking if
data[i].assetType == 8 since 8 is the assetType for Hats specifically.

Hmm can you give me a little bit more of an example? I’m a little confused. I’m mostly looking for hats.

for _, asset in pairs(data) do
   if asset.assetType == 8 then
      print("Asset is a hat")
   end
end

Well yes, that goes through the data that is received through roblox proxy. I understand that part. I want to get past 17 pages and get ALL hats, hairs, etc because I know there is not just 17 pages of accessories.

So you want all the accessories? here is the category/subcategory of that i found quickly by going to the Avatar Shop and clicking on Accessories and clicking on All Accessories and look at the link of it that you couldve do.

https://www.roblox.com/catalog?Category=11&Subcategory=19

Still. Only 17 pages of accessories

There are only 17 pages of accessories my man. It’s a fact.

So then where are these hats for example?
https://www.roblox.com/catalog/153028036/Nerdy-Bunny
https://www.roblox.com/catalog/96678344/LOL-Day-Cap
https://www.roblox.com/catalog/184745025/Halloween-Baseball-Cap-2014

1 Like

They are hidden because they are unavailable

Only 1 item is though? Where would the others be?

They are all unavailable. Limited ones are included in unavailable list too.

and this?
https://www.roblox.com/catalog/100932455/Alpine-Fedora

its a hat accessory, so it should be there.

It’s not. I am sure of it. It’s very limited.

There’s no limited sign there, and I searched it up in the Avatar Shop in All Accessories and its definitely there.

Do you know how I could get the items that are off sale?