AAMTG

Search syntax

Type words to search card names, and add filters to narrow the results. The same page is inside the app, under Syntax, with every example clickable. The filter panel on the home page writes these queries for you.

The basics

You typeYou get
lightning boltCards whose name contains both words
"serra angel"Quotes keep words together
!"Lightning Bolt"An exclamation mark asks for the exact name
t:dragon c:rFilters are written key:value, and all of them must match
t:elf or t:goblinEither one or the other
(t:elf or t:goblin) mv<=2Parentheses group, as in arithmetic
c:r -t:creatureA minus sign excludes

Number filters accept : = != < <= > >=, as in mv<=3 or pow>=5. Upper and lower case do not matter.

Colours

Write any combination of w u b r g, a colour's name, c for colourless or m for multicolour.

You typeYou get
c:rgCards that are at least red and green
c=rgExactly red and green
c<=rgRed, green, both, or colourless
c:cColourless cards
c:mCards of two or more colours
id:wubCards that fit in a white-blue-black Commander deck

One result per card, or per printing

A search normally shows each card once, with the printing that matches best. Add unique:prints to see every printing. Tokens and other extras are hidden unless you ask for a set, a collector number, or add include:extras.

All filters

FilterMeaningExample
name Card name contains (= for the exact name)name:bolt
o oracle Rules text containso:"draw a card"
t type Type line containst:legendary t:dragon
kw keyword Has a keyword abilitykw:flying
c color colour Coloursc:rg c=w
id identity Colour identity (fits in a deck of these colours)id:wub
mv cmc Mana valuemv<=3
m mana Mana cost containsm:2rr m:{G}{G}
pow power Powerpow>=5
tou toughness Toughnesstou<2
loy loyalty Loyaltyloy=3
r rarity Rarityr:mythic r>=rare
s e set edition Set codeset:mh3
cn number Collector numbercn:161
st Set typest:expansion
f format legal Legal in a formatf:modern
a artist Artist name containsa:"rebecca guay"
ft flavor Flavour text containsft:urza
year Year of the printingyear>=2020
date Release date of the printingdate>=2024-01-01
eur Price in euroeur<5
usd Price in US dollarsusd>=20
is One of: foil, nonfoil, etched, reprint, promo, digital, extra, dfcis:foil
have I own any printing of this card (yes / no)have:yes
haveprint I own this exact printing (yes / no)set:arn haveprint:no
qty Copies I own of this printingqty>=4
loc location I keep it in a location named likeloc:"blue box"
cond I own it in this conditioncond:nm
finish I own it in this finishfinish:foil
lang I own it in this languagelang:it
deck In a deck whose name containsdeck:"dragons"
unique Show cards (default) or every printingunique:prints
order Sort by: name, mv, released, rarity, price, set, typeorder:price
dir Sort direction: asc or descdir:desc
include Also show tokens and other extrasinclude:extras

Your collection in a search

have: is about the card, whatever the printing; haveprint:, qty, loc:, cond:, finish: and lang: are about the exact printing shown. So set:mh3 haveprint:no unique:prints lists the printings of a set you are missing, and have:yes t:dragon every dragon you own in any printing.

The switch beside the Search button writes haveprint:yes into the search for you, and takes it out again: searching your collection is that one filter and nothing else.

Limits

A search can be at most 2,000 characters and 100 terms long.