CatalogSearchParams

Constructors

NameDescription
new()Returns a new CatalogSearchParams with default values. Set its properties, then pass it to AvatarEditorService:SearchCatalogAsync() to run a catalog search.

Code Snippet

local AvatarEditorService = game:GetService("AvatarEditorService")

local params = CatalogSearchParams.new()
params.SearchKeyword = "hat"
params.MinPrice = 0
params.MaxPrice = 500
params.SortType = Enum.CatalogSortType.Relevance
params.AssetTypes = {Enum.AvatarAssetType.HatAccessory}

local pages = AvatarEditorService:SearchCatalogAsync(params)
local results = pages:GetCurrentPage()

for _, item in results do
    print(item.Name, item.Price)
end

Properties

NameTypeDescription
SearchKeywordstringThe keyword to search for catalog results with.
MinPricenumberThe minimum item price to search for. Defaults to 0.
MaxPricenumberThe maximum item price to search for. Defaults to 2147483647.
SortTypeEnum.CatalogSortTypeThe order in which to sort the results. Defaults to Relevance.
SortAggregationEnum.CatalogSortAggregationThe time period to aggregate the sort results by. Only applies when SortType is MostFavorited or BestSelling. Defaults to AllTime.
CategoryFilterEnum.CatalogCategoryFilterThe category to filter the search by. Defaults to None.
SalesTypeFilterEnum.SalesTypeFilterThe sales type to filter the search by. Defaults to All.
BundleTypesArray<Enum.BundleType>An array of Enum.BundleType values to filter the search by. Accessing this property returns a read-only table. Defaults to an empty array.
AssetTypesArray<Enum.AvatarAssetType>An array of Enum.AvatarAssetType values to filter the search by. Accessing this property returns a read-only table.
IncludeOffSalebooleanWhether off-sale items should be included in the results. Defaults to false.
CreatorNamestringSearch for items with the given creator name. Use CreatorType to specify whether to search users, groups, or both. Cannot be combined with CreatorId.
CreatorTypeEnum.CreatorTypeFilterSearch for items created by the given creator type. Defaults to All (both User and Group).
CreatorIdnumberSearch for items created by the given single creator ID. Defaults to 0.
LimitnumberThe number of items to return per page. Accepts 10, 28, 30, 60, or 120. Defaults to 30.