Skip to content

Pokemon Habitats

PokemonHabitat

Represent a Pokémon habitat resource returned by PokéAPI.

Habitats describe the types of terrain where Pokémon can be found and may also identify areas associated with rare or legendary Pokémon.

This model corresponds to the https://pokeapi.co/api/v2/pokemon-habitat/{id or name}/ endpoint.

Attributes:

Name Type Description
id int

The unique identifier of the Pokémon habitat.

name str

The name of the Pokémon habitat.

names list[Name]

The localized names of this Pokémon habitat in different languages.

pokemon_species list[NamedAPIResource]

The Pokémon species that can be found in this habitat.