Hearthstone card search
The search box on the Hearthstone Cards page and in the deck builder understands a small query language. A plain word is enough to find a card by name, and fields let you ask for things like "Standard Mage spells that cost 2 or less" in one line: c:mage t:spell cost<=2 is:standard.
How search works
Type a query into the search box on the Cards page or in the deck builder. A query is one or more terms separated by spaces, and a card has to match every term.
- A plain word searches card names and rules text:
draw. field:valuesearches one field:t:spell. Every field has a full name and usually a short alias, sotype:spellandt:spellare the same search. Field names and values ignore upper and lower case unless this page says otherwise.
The fields, shortcuts and examples for this game are further down the page.
Matching text
How you write a value decides how strictly it has to match.
| You type | It matches |
|---|---|
word | Names close to word, typos allowed, plus any card whose name or rules text contains word. |
n:word | Names close to word, typos allowed. |
"two words" | Names or rules text containing exactly two words. Quotes turn typo tolerance off and let a value hold spaces. |
field:"two words" | That field contains exactly two words. |
field:!value | That field is exactly value, not just containing it. |
field:/pattern/ | That field matches a regular expression, ignoring case: n:/^the / finds names starting with "The". |
Some details:
- Only names are typo-tolerant. Every other field matches when its value contains what you typed, so
o:drawfinds "draws" and "Draw 1". - Best matches come first. When a query has a plain word or a
n:term, the closest names are listed first. A query with only fields keeps the page's normal order, and a sort you pick yourself always wins. - Use
!and/…/with a field. On a plain word they compare against a card's name and rules text all at once, which rarely matches. - The word
oris special (see below). To search for it, quote it:"or".
Combining terms
| You type | It means |
|---|---|
a b | Both a and b must match. |
a or b | Either a or b must match. OR works too. |
-a | Leave out cards that match a. Works before any term or group: -t:spell, -(a or b). |
(a or b) c | Parentheses group terms: c plus either a or b. |
a b or c | Terms next to each other are joined first, so this is (a b) or c. Add parentheses if not. |
Comparing numbers and ranks
Number fields such as cost take a comparison:
| Operator | Meaning | Example |
|---|---|---|
: | Has this value: contains for text and values, equal for numbers | cost:3 |
= | Equal to | cost=3 |
!= | Not equal to | cost!=3 |
< | Less than | cost<3 |
<= | Less than or equal to | cost<=3 |
> | Greater than | cost>3 |
>= | Greater than or equal to | cost>=3 |
A field whose allowed values are listed in order, such as rarity, can be compared the same way: r>=rare finds Rare and everything ranked above it in the list shown in the fields table. A value that is not in that list never matches a comparison, though it still matches with :.
Shortcut syntax
is:name finds a whole kind of card in one term. not:name is the same as -is:name. If a shortcut's name has a space, quote it: is:"two words". Each game's shortcuts are listed below.
A field or shortcut the game doesn't have matches no cards, so check the spelling if a search comes back empty.
Field kinds
| Kind | How it matches |
|---|---|
| Text | Free text, such as a name or rules text. : means contains (names also allow typos). |
| Value | One of a set of values, such as a type or region. : means contains, so part of a value is enough. When the allowed values are listed, comparisons follow their order. |
| Number | A number. : means equal, and every comparison operator works. |
| Symbols | A mix of symbols, such as an attack cost or a card's colors. Some of these fields also take a plain number. A game with symbol fields explains them below its fields table. |
Fields
| Field | Aliases | Kind | Description | Values |
|---|---|---|---|---|
name | n | Text | The card's name. Unquoted text is typo-tolerant. | Any text |
text | o, oracle | Text | Rules text. | Any text |
type | t | Value | Card type: minion, spell, weapon, hero or location. | minion, spell, weapon, hero, location |
rarity | r | Value | Rarity. Comparisons use the order free, common, rare, epic, legendary. | free, common, rare, epic, legendary |
set | e, s | Value | Set code, such as CORE or TITANS. A card matches every set it was printed in. | Values come from the card catalog. |
cost | mana, mv, cmc | Number | Mana cost. | A number |
class | c | Value | Class, such as mage or deathknight. A dual-class card matches both classes; a card with no class is neutral. | deathknight, demonhunter, druid, hunter, mage, paladin, priest, rogue, shaman, warlock, warrior, neutral |
attack | atk | Number | Attack. | A number |
health | hp | Number | Health of a minion, location or hero. | A number |
durability | dur | Number | A weapon's durability. | A number |
armor | Number | Armor a hero card gives. | A number | |
keyword | kw | Value | Keyword the card has or its text mentions, with _ for spaces, such as taunt or divine_shield. | Values come from the card catalog. |
race | tribe, miniontype | Value | Minion type, such as dragon or mechanical. An Amalgam counts as every type. | beast, demon, draenei, dragon, elemental, mechanical, murloc, naga, pirate, quilboar, totem, undead, all |
school | spellschool | Value | Spell school, such as fire or shadow. | arcane, fel, fire, frost, holy, nature, shadow |
format | f, legal | Value | A format the card is legal in: standard or wild. | standard, wild |
rune | runes | Symbols | Death Knight rune cost: B Blood, F Frost, U Unholy. rune:BB needs at least two Blood runes; rune<=BBU fits a deck with those runes; a number compares the total. | A number, or symbols |
c is short for class, not cost: write cost (or mana) for the mana cost. Keywords use _ in place of spaces, such as kw:divine_shield.
Rune symbols
With symbols, rune: matches any one cost on the card that contains at least the listed mix.
| Symbol | Meaning |
|---|---|
B | Blood |
F | Frost |
U | Unholy |
Shortcuts
| Shortcut | Finds |
|---|---|
is:neutral | Neutral cards, which any class can play. |
is:multiclass | Cards shared by two or more classes. |
is:legendary | Legendary cards. |
is:minion | Minions. |
is:spell | Spells. |
is:weapon | Weapons. |
is:hero | Hero cards. |
is:location | Locations. |
is:standard | Cards legal in Standard. |
is:wild | Cards legal in Wild. |
is:unreleased | Announced cards that are not out yet. |
is:tourist | Tourists, which let another class's cards into your deck. |
Examples
| Query | Finds |
|---|---|
c:mage t:spell cost<=2 is:standard | Standard Mage spells that cost 2 or less. |
kw:taunt atk>=5 is:minion | Taunt minions with 5 Attack or more. |
race:dragon is:legendary | Legendary Dragons. |
school:fire | Fire spells. |
rune:BB | Death Knight cards that need at least two Blood runes. |
is:neutral kw:divine_shield is:standard | Standard neutral cards with Divine Shield. |
o:"draw a card" c:priest | Priest cards whose text says "draw a card". |
t:weapon dur>=3 | Weapons with 3 Durability or more. |
is:tourist | Tourists. |
e:CORE r:epic | Epic cards from the Core set. |