I am creating an avatar editor. I want body part bundles to be displayed to the player for them to equip. To do this, I need to programmatically get Roblox bundle IDs with their items.
I cannot figure out how to do this. I have tried:
-
Using the Search web API with a proxy to search for bundles. It turns out that bundles are not provided by the catalog search.
https://search.roblox.com/catalog/json?Category=4&Subcategory=37
retrieves an empty JSON array. This could be because bundles use a separate ID system to assets. -
-
Using the Search web API with a proxy to search for heads (
https://search.roblox.com/catalog/json?Category=4&Subcategory=15&IncludeNotForSale=true
). -
Then, for each head, using the Catalog web API to get the bundle that the head belongs to (
https://catalog.roblox.com/v1/assets/{assetId}/bundles
) as well as the other items in that bundle. This is a roundabout way to get all bundles with a special head, but bundles without a special head (such as the iconic Robloxian 2.0) will not be retrieved meaning this does not suit my needs. As far as I know, other body parts cannot be exclusively retrieved, meaning I can’t find bundles by torso, for example.
-
Is there a way to do this? I am able to use the Roblox web API with a proxy.