Wowpedia
Advertisement
Game Flavors
Links
Patch
Added in 8.3.0

Queries the auction house using search parameters.

C_AuctionHouse.SendBrowseQuery(query)

Arguments

query 
AuctionHouseBrowseQuery
Key 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
Key Type Description
sortOrder Enum.AuctionHouseSortOrder?
reverseSort boolean?
Enum.AuctionHouseSortOrder
Value Key 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 Key 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
Key Type Description
classID number ItemType
subClassID number?
inventoryType Enum.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

See also


Advertisement