Catalog API search for hats

I’m trying to use the catalog API to search for hats.
I can use the subcategory to find most accessory types - e.g. 22 here returns neck accessories
https://catalog.roblox.com/v1/search/items/details?category=11&subcategory=22

But when I try to find hats using a subcategory of 9
https://catalog.roblox.com/v1/search/items/details?category=11&subcategory=9

I get an error returned:
{“errors”:[{“code”:1,“message”:“Category subcategory selection not supported.”,“userFacingMessage”:“Something went wrong”}]}

As far as I can see from the documentation this is the correct category and subcategory to use?

1 Like

Would this help?

ty, I’ve read there and I’m using the category and subcategory IDs that it says, I believe

Does anyone have any ideas on this. I’m pretty sure I’ve followed the API docs correctly (see links above) but they don’t seem to be working.
Have I done something wrong, or is this a bug, or a documentation error?

What’s you’re probably looking for is category=11&subcategory=54 (Accessories > Head Accessories)

To note, the documentation for this API on the docs site has been outdated for some time now; see up-to-date categories and subcategories from the API. (though, some categories and subcategories are disabled)

2 Likes

Perfect thanks, that is just what I needed. Thank you!

i tried to use this api for searching ugc limiteds but they show me the same things even if i change the settings is the api not working anymore what should i use?

1 Like

Same. Seems like catalog API is just straight up broken for category & subcategories. Not sure what the current catalog games even use? Older api?