Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

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[]?
AuctionHouseSortType
Field Type Description
sortOrder Enum.AuctionHouseSortOrder?
reverseSort boolean?
Enum.AuctionHouseSortOrder
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
Enum.AuctionHouseFilter
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
AuctionHouseItemClassFilter
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[]

Battle for Azeroth Patch 8.3.0 (2020-01-14): Added, replacing QueryAuctionItems().

See also[]


Advertisement