Hi, as I’m sure most of you are aware last year Roblox updated all of their API endpoints, including the longstanding method to retrieving favorites from https://roblox.com/users/favorites.
Ostensively, it would seem like they now want you to use this endpoint to retrieve favorites, but this seems to only return a json list of all possible favorite types? I honestly cannot tell if this is intentional as it requires you to provide a User ID as an argument in the URL.
The Inventory API states that this “returns favorites categories” for a user. The wording is vague at best, and I think most would be led to believe it is otherwise a replacement for the older API as mentioned.
Is this a bug or am I just not looking in the right place? Or is Roblox actually planning to phase out API support for favorites lookup? Any help is appreciated. Thank you!
What exactly are you trying to fetch? The favorite items of a specific category(for example games), for a specific user?
A useful API I found by inspecting the favorites page is the following:
https://catalog.roblox.com/v1/favorites/users/{userId}/favorites/{categoryId}/assets?limit=100
it also works on incognito so it’s probably the one you’re looking for.
The only hard part when using it is to know which category matches which category id, for that the following API might be useful:
https://catalog.roblox.com/v1/asset-to-category
it provides a mapping between asset types and category ids. Although you don’t need to build functionality for it unless you’re making some kind of dynamic user favorites in-game UI. If you are interested on just a single category(for example favorite audio) you can just find the number corresponding to audio manually and input it as a static/non changing URL parameter.
Lastly this API returns paginated results, which means that if you want all the results or more than 100 results, you will have to use the cursor
parameter to fetch a different favorites page on each call, until you finish iterating.