![]() |
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
| This function is restricted.
|
Queries the auction house using search parameters.
C_AuctionHouse.SendBrowseQuery(query)
Arguments
- query
- AuctionHouseBrowseQuery
| Field | Type | Description |
|---|---|---|
| searchString | string | Case insensitive |
| sorts | AuctionHouseSortType[] | This appears to expect at least a certain combination of sort types, e.g. price and name. |
| minLevel | number? | |
| maxLevel | number? | |
| filters | Enum.AuctionHouseFilter[]? | Requires at least one filter in order to show something. |
| itemClassFilters | AuctionHouseItemClassFilter[]? |
| Field | Type | Description |
|---|---|---|
| sortOrder | Enum.AuctionHouseSortOrder? | |
| reverseSort | boolean? |
| Value | Field | Description |
|---|---|---|
| 0 | Price | |
| 1 | Name | |
| 2 | Level | |
| 3 | Bid | |
| 4 | Buyout | |
| 5 | TimeRemaining | Only works for Owned auctions. Added in 9.0.1 |
| Value | Field | Description |
|---|---|---|
| 0 | None | Added in 9.2.5 |
| 1 | UncollectedOnly | |
| 2 | UsableOnly | |
| 3 | UpgradesOnly | |
| 4 | ExactMatch | |
| 5 | PoorQuality | |
| 6 | CommonQuality | |
| 7 | UncommonQuality | |
| 8 | RareQuality | |
| 9 | EpicQuality | |
| 10 | LegendaryQuality | |
| 11 | ArtifactQuality | |
| 12 | LegendaryCraftedItemOnly | Added in 9.0.1 |
| Field | Type | Description |
|---|---|---|
| classID | number | ItemType |
| subClassID | number? | |
| inventoryType | Enum.InventoryType?🔗 |
Example
Queries auctions, sorted by price and then name. Shows only items from Poor to Epic quality.
local btn = CreateFrame("Button", nil, UIParent, "UIPanelButtonTemplate")
btn:SetPoint("CENTER")
btn:SetSize(120, 40)
btn:SetText("Example")
btn:SetScript("OnClick", function(self, button)
local query = {
searchString = "",
sorts = {
{sortOrder = Enum.AuctionHouseSortOrder.Price, reverseSort = false},
{sortOrder = Enum.AuctionHouseSortOrder.Name, reverseSort = false},
},
filters = {
Enum.AuctionHouseFilter.PoorQuality,
Enum.AuctionHouseFilter.CommonQuality,
Enum.AuctionHouseFilter.UncommonQuality,
Enum.AuctionHouseFilter.RareQuality,
Enum.AuctionHouseFilter.EpicQuality,
},
}
C_AuctionHouse.SendBrowseQuery(query)
end)
Patch changes
Patch 8.3.0 (2020-01-14): Added, replacing QueryAuctionItems().
See also
- C_AuctionHouse.SendSearchQuery() - Query a specific ItemID.
- C_AuctionHouse.ReplicateItems() - Download the entire auction house.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
