← Back to search

PokeQL syntax

PokeQL searches competitive Pokemon data: Pokemon, moves, and abilities. For example, resists:fighting has:intimidate finds Pokemon that resist Fighting and can have Intimidate. Click any example on this page to run it.

General

Basics

A query is a list of filters separated by spaces. Each filter is a keyword and a value joined by a colon, like type:fire. A result has to match every filter in the query.

Any word that isn't a filter searches names instead. It matches anywhere in the name, ignoring case and punctuation.

Queries find Pokemon unless you say otherwise. Start with move or ability (or the longer what:move / what:ability) to search those instead.

Writing values

Values ignore case, spaces, and punctuation, so learns:closecombat, learns:close-combat, and learns:"close combat" are all the same filter. Use quotes when a value has a space in it.

Stats accept short or long names: hp, atk/attack, def/defense, spa/specialattack, spd/specialdefense, spe/speed.

Status conditions do too: brn/burn, par/paralyze, frz/freeze, slp/sleep, psn/poison, and tox/toxic for bad poison (kept separate from regular poison).

Negating and combining

Put - in front of a filter to exclude what it matches.

Use or between filters to match either one, and parentheses to group them. Without or, filters are combined with AND as usual.

For a quick OR on one filter, separate values with |: type:fire|water means Fire-type or Water-type.

Comparing numbers

Number filters take : for an exact match, or >, <, >=, <=.

On Pokemon, that covers the six base stats and bst (base stat total). On moves, it covers power, acc, and priority -- see the Moves tab.

You can compare against another Pokemon instead of a number: spe>=tyranitar means "at least as fast as Tyranitar."

Queries inside queries

Where a filter takes a move, ability, or Pokemon, you can give it a whole query in parentheses instead. learns:(...) searches moves, has:(...) searches abilities, and pokemon:(...) searches Pokemon.

On Pokemon results, each card notes which of its moves matched the inner query.

Sorting

Add sort:<column> anywhere in a query to order the results, highest first. Add :asc for lowest first.

Pokemon sort by any stat, bst, or dex (national dex number). Moves sort by power, acc, or priority. Abilities sort by name.

Results are sorted by name when there's no sort:.

Pokemon

Types

type: matches either of a Pokemon's types. Use two type: filters for an exact dual type.

monotype:<type> matches Pokemon with only that type. Bare monotype matches every single-typed Pokemon.

Type matchups

These filters check how much damage a Pokemon takes from an attacking type, counting both of its types.

The value can be a type, a move (it uses the move's type), or another Pokemon. A Pokemon means every one of its types: resists:charizard is the same as resists:fire resists:flying.

immune: also counts immunity abilities, like Volt Absorb or Levitate.

weak:<type>
Takes super-effective damage
resists:<type>
Takes reduced damage or none at all
onlyresists:<type>
Takes reduced damage, but isn't immune
immune:<type>
Takes no damage, from its typing or an ability
quadweak: / 4xweak:<type>
Takes 4x damage
quadresists: / 4xresists:<type>
Takes 1/4 damage

Moves and abilities

learns: (or move:) finds Pokemon that can learn a move. It counts moves their evolutions can learn too, so Charmander matches learns:dragondance.

has: (or ability:) finds Pokemon that can have an ability, including hidden abilities.

Generations and regions

gen:<N> finds Pokemon you can use in generation N's games: older Pokemon count, and Pokemon cut from the dex (dexit) don't.

gen: also limits learns:, has:, and tier: to that generation, and shows each card's abilities as they were in it.

introgen:<N> is the generation a Pokemon debuted in. region:<name> is its home region: kanto, johto, hoenn, sinnoh, unova, kalos, alola, galar, hisui, or paldea.

Tiers and formats

tier: is the Smogon tier: uber, ou, uubl, uu, rubl, ru, nubl, nu, publ, pu, zubl, zu, nfe, lc, or ag. Tiers differ by generation, so tier: needs a gen: in the same query.

format: checks legality in a VGC regulation: championsma, championsmb, or championsmc. format:champions always means the latest one.

Special groups

These are single words, no value needed. Put - in front to exclude the group.

legendary
Legendaries, including sub-legendaries like the Lake trio
boxlegendary
Box-art and cover legendaries only
mythical
Mythicals, like Mew and Celebi
ultrabeast
Ultra Beasts
paradox
Paradox Pokemon
mega
Mega Evolutions and Primal forms
gmax
Pokemon with a Gigantamax form
fe / nfe
Fully evolved, or not fully evolved (single-stage Pokemon count as fully evolved)

Moves

Move details

Start a query with move to search moves.

type: is the move's type. category: is physical, special, or status. power, acc, and priority compare numbers, like stats on Pokemon.

Effectiveness

These filters check how well a move hits a type or Pokemon -- the reverse of the Pokemon-side type matchups.

Against a Pokemon, both of its types count, but its ability doesn't: move immune:gengar is about typing alone.

se: / supereffective:<type|pokemon>
Super effective
resisted:<type|pokemon>
Not very effective (but not immune)
immune:<type|pokemon>
No effect
thuds:<type|pokemon>
Not very effective or no effect
quadeffective: / 4xse:<type|pokemon>
4x effective
quadresisted: / 4xresisted:<type|pokemon>
1/4 effective

Who learns it

pokemon:<pokemon> finds moves that Pokemon can learn. Add gen: to only count what it learned in that generation.

Move effects

Effect filters describe what a move does. On a Pokemon search, they match Pokemon that learn a move with that effect.

buffs: and debuffs: take a stat, plus an optional exact number of stages (buffs:atk:2). acc and eva work here too.

effect:buff / effect:debuff
Raises or lowers a stat
buffs:<stat> / debuffs:<stat>
Raises or lowers that stat, e.g. debuffs:atk (Growl)
effect:status
Inflicts burn, freeze, paralysis, poison, or sleep
status:<status>
Inflicts that status, e.g. status:burn
effect:vstatus
Inflicts a volatile status: confusion, flinch, trapping, Taunt, Leech Seed, and so on
vstatus:<vstatus>
Inflicts that volatile status, e.g. vstatus:confusion, vstatus:flinch
effect:hazard
Entry hazards (Stealth Rock, Spikes, Toxic Spikes, Sticky Web)
effect:hazard-removal / effect:spin / effect:defog
Clears entry hazards (Rapid Spin, Defog, Tidy Up, Mortal Spin, Court Change)
effect:screen
Team-wide protection (Reflect, Light Screen, Aurora Veil)
effect:weather / effect:terrain
Sets weather or terrain
effect:heal / effect:drain
Restores HP; drain is just the hit-and-heal moves
effect:recoil
Recoil, crash damage, or an HP cost
effect:pivot
Switches the user out (U-turn, Volt Switch, Parting Shot)
effect:phaze / effect:force-switch-target
Forces the target out (Roar, Dragon Tail)
effect:priority
Any move that goes earlier or later than normal
effect:protect / effect:protect-pierce
Protect-style moves, or moves that get through them
effect:multihit
Hits more than once
effect:crit
High critical-hit ratio, or always crits
effect:ohko / effect:fixed-damage
One-hit KOs, or set damage (Seismic Toss)
effect:semi-invulnerable
Two-turn moves that dodge in between (Fly, Dig)
effect:copy-move / effect:delayed
Calls another move (Metronome), or hits later (Future Sight)
effect:contact / sound / punch / bite / bullet / powder / pulse / slicing
Move flags that abilities and items care about

Abilities

Searching abilities

Start a query with ability to search abilities. Name search and the effect filters below work here.

pokemon:<pokemon> finds a Pokemon's abilities. Add gen: to see them as they were in that generation.

Ability effects

Effect filters describe what an ability does. On a Pokemon search, they match Pokemon that can have an ability with that effect.

buffs: and debuffs: work the same as on moves.

effect:buff / effect:debuff
Raises or lowers a stat
buffs:<stat> / debuffs:<stat>
Raises or lowers that stat, e.g. debuffs:atk (Intimidate)
effect:weather / effect:terrain
Sets weather or terrain (Drought, Electric Surge)
effect:heal
Restores HP (Regenerator, Water Absorb)
effect:hazard
Sets entry hazards (Toxic Debris)
effect:priority
Changes move priority (Prankster, Gale Wings)
effect:protect-pierce
Gets through Protect (Unseen Fist)
effect:multihit
Extra hits (Skill Link, Parental Bond)
effect:crit
Raises or guarantees critical hits (Super Luck, Merciless)
effect:copy-move
Uses another Pokemon's move (Dancer)