I’ve been researching this for a while to no avail - is there a way to obtain an Asset ID from an AssetVersionId? There are ways to obtain the current AssetVersionId from an Asset ID, but I am not aware of any ways to convert the other way around.
As a reference, if you use this to obtain the items a user is currently wearing: https://api.roblox.com/v1.1/avatar-fetch?userId=USERID, you will see accessoryVersionIds
(a list of AssetVersionId
s). While you are able to insert instances of the assets themselves using game:GetService("InsertService"):LoadAssetVersion(assetVersionId)
, there is no apparent way to identify the actual asset ID (unless you insert the AssetVersion, visually recognize the item, and then manually try to search its name on the Avatar Shop to find it)
The only reason I am using this way instead of using https://avatar.roblox.com/v1/users/USERID/avatar (which actually directly gives the Asset IDs) is because only the first way works for terminated users’ avatars. If you try this second way (or any other way) on a terminated user’s ID, it will say “The specified user does not exist.”
Example of what I mean: (for the terminated user “Minish”)
-works: https://api.roblox.com/v1.1/avatar-fetch?userId=136893
-does not work: https://avatar.roblox.com/v1/users/136893/avatar