Items#

GET /api/items#

Search items

Finds items with a whole word of q in their name, highest required level first, 50 to a page. Battle.net matches English word stems, so bless finds Blessed, but thund finds nothing. It stops at 1,000 results. Answers 503 if Battle.net is not configured or did not answer.

Parameters

Name

In

Type

Required

Description

q

query

string

yes

Text to find in item names.

page

query

integer

no

The page, starting at 1.

quality

query

array of ItemQuality | null

no

Only these qualities. Repeat the parameter for more than one.

slot

query

string | null

no

Only this slot, such as TWOHWEAPON.

Response 200 — One page of matching items.

Model: ItemSearchPage

Field

Type

Required

Description

page

integer

yes

This page’s number, starting at 1.

page_count

integer

yes

How many pages the search has.

results

array of ItemSearchResult

yes

GET /api/items/{item_id}#

Get an item

Returns one item by its game ID: quality, slot, levels, icon and the lines of its in-game tooltip. Answers 503 if Battle.net is not configured, or did not answer and the item was never stored.

Parameters

Name

In

Type

Required

Description

item_id

path

integer

yes

The item’s game ID.

Response 200 — The item.

Model: ItemSchema

Field

Type

Required

Description

item_id

integer

yes

The item’s game ID.

name

string

yes

quality

string

yes

Battle.net’s quality constant, such as EPIC.

quality_name

string

yes

The quality as the game shows it, such as Epic.

item_class

string

yes

The item class, such as Weapon.

item_subclass

string

yes

The item subclass, such as Sword.

inventory_type

string

yes

Battle.net’s slot constant, such as TWOHWEAPON.

inventory_type_name

string

yes

The slot as the game shows it, such as Two-Hand.

item_level

integer

yes

required_level

integer

yes

sell_price

integer

yes

What a vendor pays, in copper.

is_equippable

boolean

yes

icon_url

string | null

yes

The item’s icon on Blizzard’s render server, if Battle.net has one.

tooltip

array of string

yes

The tooltip’s text lines in order, below the item’s name.

loot_price

ItemLootPrice | null

yes

What SQL charges for this item, or null if the loot rules don’t price its slot.