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