See how the Pokemon API has evolved across three major versions.
Released: January 1, 2024
The initial release focused on basic Pokemon data:
query V1Example {
pokemon(id: "025") {
id
name
type
hp
attack
defense
}
pokemons(type: ELECTRIC) {
name
type
}
}Released: June 1, 2024
Major expansion adding battle mechanics and trainers:
type field replaced with types arraystats objectquery V2Example {
pokemon(id: "006") {
name
types # Now an array!
stats { # Nested object
hp
attack
defense
specialAttack
specialDefense
speed
}
abilities {
name
isHidden
}
evolution {
evolvesTo {
name
}
level
}
}
}Released: December 1, 2024
Full-featured API for competitive Pokemon battles:
query V3Example {
pokemons(
isLegendary: true
generation: 1
limit: 10
) {
edges {
node {
name
types
stats {
total
}
isLegendary
generation
}
}
pageInfo {
hasNextPage
totalCount
}
}
battleMatchup(
attacker: "006" # Charizard
defender: "009" # Blastoise
) {
effectiveness
predictedWinner {
name
}
attackerWinChance
}
}type with types[0] for single typestats object