SearchEndpoints - liljaba1337/r6-marketplace GitHub Wiki

SearchItem

⚠️ This method also has an unrestricted version.

Options

Param Type Required Default Description
name string false Empty The name of the item to search for.
filters IEnumerable<Enum>? false null A collection of SearchTags.
sortBy SortBy false SortBy.PurchaseAvailaible The method of sorting.
sortDirection SortDirection false SortDirection.DESC The direction of sorting.
limit int false 40 The maximum number of items to return.
offset int false 0 The number of items to skip before returning results.
local Data.Local false Data.Local.en The language to return metadata in.

Returns

An IReadOnlyList of PurchasableItem instances or an empty list if nothing was found.

List<Enum> filters = new List<Enum>()
{
    r6_marketplace.Utils.SearchTags.Type.WeaponSkin,
    r6_marketplace.Utils.SearchTags.Weapon.AK_12,
};
IReadOnlyList<SellableItem> items = await client.SearchEndpoints.SearchItem("black ice", filters);

GetSearchTags

⚠️ This method isn't needed anymore. Still works, but may be removed in the future.

Returns

A Tags instance.

Tags tags = await client.SearchEndpoints.GetSearchTags();

⚠️ **GitHub.com Fallback** ⚠️