I’m trying to make a catalog model for Roblox, but I don’t know how to get personalized API results for a player. If you know, please let me know. Thanks.
I’m not so sure if this is possible? You can’t exactly access a Player’s personalised catalog recommendations, it’s all locked behind Roblox servers.
Catalog Avatar Creator does this.
I’m not sure if it does, but here’s one idea if you want to tune player’s catalog:
You could theoretically go through the Player’s currently equipped accessories and search keywords from the equipped accessories using the Marketplace Search API, or save the user’s previous searches when they search for certain accessories on your catalog, and use them to search related items on the Marketplace too.
Hi,
You can use GetRecommendedAssets() and GetRecommendedBundles() to get personalized results.
There is no way to access the actual personalized results that are used for the website catalog, but you can simply keep track of player’s bought items (even tried on or bought items if you wish, but for best results you should track purchases).
How these functions work is you provide an assetId, it will return similar assets.
Here’s how you can get a recommendation for a hat:
local AvatarEditorService = game:GetService("AvatarEditorService")
local assets = AvatarEditorService:GetRecommendedAssets(Enum.AvatarAssetType.Hat, 9255093)
for _, asset in ipairs(assets) do
print(asset.Item.Name)
end
Do you solved this? f;afdfghbfyhjnfyjftgyj
Yes i can help you, so basically it needs to follow 2 aspeacts:
IncludeOffSale = false,
The asset types for some reason should have ONLY things from here:
try using:
AssetTypes = {
Enum.AvatarAssetType.Hat,
Enum.AvatarAssetType.FaceAccessory,
Enum.AvatarAssetType.NeckAccessory,
Enum.AvatarAssetType.ShoulderAccessory,
Enum.AvatarAssetType.FrontAccessory,
Enum.AvatarAssetType.BackAccessory,
Enum.AvatarAssetType.WaistAccessory,
Enum.AvatarAssetType.Gear,
};
also i don’t need gears so im just ignoring them in server equip code and client frame generation code
if ItemData.AssetType == "Gear" then return end
also notice, it works if asset types are solo, smth like that:
AssetTypes = {Enum.AvatarAssetType.Hat};
also, idk why but if im doing:
AssetTypes = {
Enum.AvatarAssetType.Hat,
Enum.AvatarAssetType.FaceAccessory,
Enum.AvatarAssetType.NeckAccessory,
Enum.AvatarAssetType.ShoulderAccessory,
Enum.AvatarAssetType.FrontAccessory,
Enum.AvatarAssetType.BackAccessory,
Enum.AvatarAssetType.WaistAccessory,
};
removing gears, or adding Enum.AvatarAssetType.HairAccessory it js stops to give personalized results, it’s rlly strange how sorting works, but i kinda understand it since it just gets your personalized results from the roblox marketplace page and as you can see on the photo i sent it only has accessories from that, and there’s no “Hair” category, only in body, but other assets will work too since you are making them solo and they search solo in the roblox marketplace. So yeah that’s the solution
