Skip to content

Common Models

APIResource

Represent a reference to an API resource returned by PokéAPI.

Attributes:

Name Type Description
url str

The URL of the referenced resource.

Description

Represent a localized description of an API resource.

Attributes:

Name Type Description
description str

The description text.

language NamedAPIResource

The language in which the description is written.

Effect

Represent a localized effect description returned by PokéAPI.

Attributes:

Name Type Description
effect str

The full effect description.

language NamedAPIResource

The language in which the effect description is written.

Encounter

Represent the encounter details for a Pokémon.

Attributes:

Name Type Description
min_level int

The minimum level of the Pokémon that can be encountered.

max_level int

The maximum level of the Pokémon that can be encountered.

condition_values list[NamedAPIResource]

The condition values required for this encounter.

chance int

The chance of encountering the Pokémon under these conditions, expressed as a percentage.

method NamedAPIResource

The method used to encounter the Pokémon.

FlavorText

Represent flavor text associated with an API resource.

Attributes:

Name Type Description
flavor_text str

The flavor text.

language NamedAPIResource

The language in which the flavor text is written.

version NamedAPIResource | None

The game version associated with the flavor text, or None if no version is specified.

GenerationGameIndex

Represent a resource's index within a game generation.

Attributes:

Name Type Description
game_index int

The index assigned to the resource within the generation.

generation NamedAPIResource

The generation to which this index applies.

MachineVersionDetail

Represent a machine's association with a version group.

Attributes:

Name Type Description
machine APIResource

A reference to the machine resource.

version_group NamedAPIResource

The version group in which the machine is available.

Name

Represent a localized name for an API resource.

Attributes:

Name Type Description
name str

The localized name.

language NamedAPIResource

The language in which the name is written.

NamedAPIResource

Represent a reference to a named API resource returned by PokéAPI.

Attributes:

Name Type Description
name str

The name of the referenced resource.

url str

The URL of the referenced resource.

VerboseEffect

Represent a localized effect description with a short summary.

Attributes:

Name Type Description
effect str

The full effect description.

short_effect str

A concise summary of the effect.

language NamedAPIResource

The language in which the descriptions are written.

VersionEncounterDetail

Represent encounter information for a specific game version.

Attributes:

Name Type Description
version NamedAPIResource

The game version to which these details apply.

max_chance int

The highest total encounter chance for this version, expressed as a percentage.

encounter_details list[Encounter]

The individual encounter details for this version.

VersionGameIndex

Represent a resource's index within a game version.

Attributes:

Name Type Description
game_index int

The index assigned to the resource within the game version.

version NamedAPIResource

The game version to which this index applies.

VersionGroupFlavorText

Represent localized flavor text associated with a version group.

Attributes:

Name Type Description
text str

The flavor text.

language NamedAPIResource

The language in which the text is written.

version_group NamedAPIResource

The version group associated with this flavor text.