pokeapi/pokemon_v2
2015-12-01 13:47:46 -05:00
..
migrations migration clean up 2015-11-27 01:48:00 +01:00
__init__.py initial commit 2014-12-04 11:11:46 +00:00
admin.py tests covering all endpoints. working on adding some convenience attributes to api resources to help connect them two way style. tests will probably need some small tweaks 2015-11-15 22:29:30 -05:00
models.py tests now handling all convenience attributes in all apis 2015-11-26 02:18:35 +01:00
README.md work for the day 2015-12-01 13:47:46 -05:00
serializers.py start docs 2015-11-28 09:30:55 -05:00
test_models.py Start on Ability api 2015-09-05 21:22:06 -04:00
tests.py start docs 2015-11-28 09:30:55 -05:00
views.py tests now handling all convenience attributes in all apis 2015-11-26 02:18:35 +01:00

Pokeapi V2 API Reference

Abilities

api/v2/ability/{id or name}

Abilities provide passive effects for pokemon in battle or overworld. Pokemon can have only one ability at a time. Check out Bulbapedia for greater detail.

Name Description Data Type
id The identifier for this ability resource integer
name The name for this ability resource string
is_main_series Whether or not this ability originated in the main series of the video games boolean
generation The generation this ability originated in APIResource (Generation)
names The name of this ability listed in different languages [Name]
effect_entries The effect of this ability listed in different languages [VerboseEffect]
effect_changes The list of previous effects this ability has had across version groups of the games [AbilityEffectChange]
flavor_text_entries The flavor text of this ability listed in different languages [VersionSpecificFlavorText] TODO
pokemon A list of pokemon that could potentially have this ability [AbilityPokemonMap]

AbilityEffectChange

Name Description Data Type
effect_entries The previous effect of this ability listed in different languages [Effect]
version_group The version group in which the previous effect of this ability originated APIResource (VersionGroup)

AbilityPokemonMap

Name Description Data Type
is_hidden Whether or not this a hidden ability for the referenced pokemon boolean
slot Pokemon have 3 ability 'slots' which hold references to possible abilities they could have. This is the slot of this ability for the referenced pokemon. integer
pokemon The pokemon this ability could belong to APIResource (Pokemon)

Berries

api/v2/berry/{id or name}

Berries are small fruits that can provide HP and status condition restoration, stat enhancement, and even damage negation when eaten by pokemon. Check out Bulbapedia for greater detail.

Name Description Data Type
id The identifier for this berry resource integer
name The name for this berry resource string
growth_time TODO integer
max_harvest TODO integer
natural_gift_power The strength of this powers natural gift integer
size The size of this berry integer
smoothness The smoothness rating of this berry integer
soil_dryness TODO integer
firmness The firmness of this berry APIResource (BerryFirmness)
flavors A list of references to each flavor a berry can have and the potency of each of those flavors in regard to this berry [BerryFlavorMap]
item Berries are actually items. This is a reference to the item specific data for this berry. APIResource (Item)
natural_gift_type A reference to the elemental type of a this berry TODO APIResource (Type)

BerryFlavorMap

Name Description Data Type
potency How powerful the referenced flavor is for this berry integer
flavor The referenced berry flavor APIResource (BerryFlavor)

Berry Firmnesses

api/v2/berry-firmness/{id or name}

TODO. Absolutely no idea what firmness does for a berry. Check out Bulbapedia for greater detail.

Name Description Data Type
id The identifier for this berry firmness resource integer
name The name for this berry firmness resource string
berries A list of the berries with this firmness [APIResource (Berry)]
names The name of this berry firmness listed in different languages [Name]

Berry Flavors

api/v2/berry-flavor/{id or name}

Flavors determine whether a pokemon will benefit or suffer from eating a berry based on their nature. Check out Bulbapedia for greater detail.

Name Description Data Type
id The identifier for this berry flavor resource integer
name The name for this berry flavor resource string
berries A list of the berries with this flavor [APIResource (Berry)]
contest_type TODO APIResource (ContestType)
names The name of this berry flavor listed in different languages [Name]

Characteristics

api/v2/characteristic/{id}

Check out Bulbapedia for greater detail.

Name Description Data Type
id The identifier for this characteristic resource integer
gene_modulo The remainder of the highest stat divided by 5 TODO integer
possible_values The possible values of the highest stat that would result in a pokemon recieving this characteristic when divided by the gene modulo [integer]
descriptions The descriptions of this characteristic listed in different languages [Description]

Contest Types

api/v2/contest-type/{id or name}
Name Description Data Type
id The identifier for this contest type resource integer
name The name for this contest type resource string
berry_flavor TODO APIResource (BerryFlavor)
names The name of this contest type listed in different languages [Name]

Contest Effects

api/v2/contest-effect/{id or name}
Name Description Data Type
id The identifier for this contest type resource integer
appeal The level of appeal this effect has TODO string
jam TODO integer
effect_entries The result of this contest effect listed in different languages [Effect]
flavor_text_entries The flavor text of this contest effect listed in different languages [FlavorText]

Egg Groups

api/v2/egg-group/{id or name}
Name Description Data Type
id The identifier for this egg group resource integer
name The name for this egg group resource string
names The name of this egg group listed in different languages [Name]
pokemon_species A list of all pokemon species that are categorized under this egg group APIResource (PokemonSpecies)

Encounter Methods

api/v2/encounter-method/{id or name}
Name Description Data Type
id The identifier for this encounter method resource integer
name The name for this encounter method resource string
order The order index of this encounter method within the main game series data integer
names The name of this encounter method listed in different languages [Name]

Encounter Conditions

api/v2/encounter-condition/{id or name}
Name Description Data Type
id The identifier for this encounter condition resource integer
name The name for this encounter condition resource string
names The name of this encounter method listed in different languages [Name]
values A list of possible values for this encounter condition [APIReference (EncounterConditionValue)]

Encounter Condition Values TODO

api/v2/encounter-condition-value/{id or name}
Name Description Data Type
id The identifier for this encounter condition value resource integer
name The name for this encounter condition value resource string
condition The condition this encounter condition value pertains to [APIReference]
names The name of this encounter method listed in different languages [Name]

Evolution Chains

api/v2/evolution-chain/{id}
Name Description Data Type
id The identifier for this evolution chain resource integer
baby_trigger_item The item that a pokemon would be holding when mating that would trigger the egg hatching a baby pokemon rather than a basic pokemon APIReference
chain The base chain link object. Each link contains evolution details for a pokemon in the chain. Each link references the next pokemon in the natural evolution order. ChainLink
Name Description Data Type
is_baby Whether or not this link is for a baby pokemon. This would only ever be true on the base link. boolean
species The pokemon species at this point in the evolution chain APIReference
evolution_details All details regarding the specific details of the referenced pokemon species evolution APIReference (EvolutionDetail)
evolves_to A List of chain objects. ChainLink

Evolution Detail

Name Description Data Type
item The item required to cause evolution this into pokemon species APIReference (Item)
trigger The type of event that triggers evolution into this pokemon species APIReference (EvolutionTrigger)
gender The gender the evolving pokemon species must be in order to evolve into this pokemon species APIReference (Gender)
held_item The item the evolving pokemon species must be holding during the evolution trigger event to evolve into this pokemon species APIReference (Item)
known_move The move that must be known by the evolving pokemon species during the evolution trigger event in order to evolve into this pokemon species APIReference (Move)
known_move_type The evolving pokemon species must know a move with this type during the evolution trigger event in order to evolve into this pokemon species APIReference (Type)
location The location the evolution must be triggered at. APIReference (Location)
min_level The minimum required level of the evolving pokemon species to evolve into this pokemon species integer
min_hapiness The minimum required level of happiness the evolving pokemon species to evolve into this pokemon species integer
min_beauty The minimum required level of beauty the evolving pokemon species to evolve into this pokemon species integer
min_affection The minimum required level of affection the evolving pokemon species to evolve into this pokemon species integer
needs_overworld_rain Whether or not it must be raining in the overworld to cause evolution this pokemon species boolean
party_species The pokemon species that must be in the players party in order for the evolving pokemon species to evolve into this pokemon species APIReference (PokemonSpecies)
party_type The player must have a pokemon of this type in their party during the evolution trigger event in order for the evolving pokemon species to evolve into this pokemon species APIReference (Type)
relative_physical_stats The required relation between the Pokémon's Attack and Defense stats. 1 means Attack > Defense. 0 means Attack = Defense. -1 means Attack < Defense. integer
time_of_day The required time of day. Day or night. string
trade_species Pokemon species for which this one must be traded. APIReference (Pokemon Species)
turn_upside_down Whether or not the 3DS needs to be turned upside-down as this Pokémon levels up. boolean

Encounter Triggers

api/v2/evolution-trigger/{id or name}
Name Description Data Type
id The identifier for this evolution trigger resource integer
name The name for this evolution trigger resource string
names The name of this evolution trigger listed in different languages [Name]
pokemon_species A list of pokemon species that result from this evolution trigger [APIReference (PokemonSpecies)]

Generations

api/v2/generation/{id or name}
Name Description Data Type
id The identifier for this generation resource integer
name The name for this generation resource string
abilities A list of abilities that were introduced in this generation [APIReference (Ability)]
names The name of this generation listed in different languages [Name]
main_region The main region travelled in this generation APIReference (Region)
moves A list of moves that were introduced in this generation [APIReference (Move)]
pokemon_species A list of pokemon species that were introduced in this generation [APIReference (PokemonSpecies)]
types A list of types that were introduced in this generation [APIReference (Type)]
version_groups A list of version groups that were introduced in this generation [APIReference (VersionGroup)]

Gender

api/v2/gender/{id or name}
Name Description Data Type
id The identifier for this gender resource integer
name The name for this gender resource string
pokemon_species_details A list of pokemon species that can be this gender and how likely it is that they will be [(PokemonSpeciesGenderChance]
required_for_evolution A list of pokemon species that required this gender in order for a pokemon to evolve into them [APIReference (PokemonSpecies)]

PokemonSpeciesGenderChance

Name Description Data Type
rate The chance of this Pokémon being female, in eighths; or -1 for genderless integer
pokemon_species A pokemon species that can be the referenced gender APIReference (PokemonSpecies)

Growth Rates

api/v2/growth-rate/{id or name}
Name Description Data Type
id The identifier for this gender resource integer
name The name for this gender resource string
formula The formula used to calculate the rate at which the pokemon species gains level string
descriptions The descriptions of this characteristic listed in different languages [Description]
levels A list of levels and the amount of experienced needed to atain them based on this growth rate [GrowthRateExperienceLevel]
pokemon_species A list of pokemon species that gain levels at this growth rate [APIReference (PokemonSpecies)]

GrowthRateExperienceLevel

Name Description Data Type
level The level gained integer
experience The amount of experience required to reach the referenced level integer

Items

api/v2/item/{id or name}
Name Description Data Type
id The identifier for this item resource integer
name The name for this item resource string
cost The price of this item in stores integer
fling_power The power of the move Fling when used with this item. integer
fling_effect The effect of the move Fling when used with this item ItemFlingEffect
attributes A list of attributes this item has [APIReference (ItemAttribute)]
category The category of items this item falls into ItemCategory
effect_entries The effect of this ability listed in different languages [VerboseEffect]
flavor_text_entries The flavor text of this ability listed in different languages [VersionSpecificFlavorText] TODO
game_indices A list of game indices relevent to this item by generation [GenerationGameIndex]
names The name of this item listed in different languages [Name]
held_by_pokemon A list of pokemon that might be found in the wild holding this item [APIReference (Pokemon)]
baby_trigger_for An evolution chain this item requires to produce a bay during mating [APIReference (Evolution Chain)]

Item Fling Effects

api/v2/item-fling-effect/{id or name}
Name Description Data Type
id The identifier for this fling effect resource integer
name The name for this fling effect resource string
effect_entries The result of this fling effect listed in different languages [Effect]
items A list of items that have this fling effect [Item]

Item Categories

api/v2/item-category/{id or name}
Name Description Data Type
id The identifier for this item category resource integer
name The name for this item category resource string
items A list of items that fall into this category [Item]
names The name of this item category listed in different languages [Name]
pocket The pocket items in this category would be put in [APIReference (ItemPocket)]

Item Pockets

api/v2/item-pocket/{id or name}
Name Description Data Type
id The identifier for this item pocket resource integer
name The name for this item pocket resource string
categories A list of item categories that are relevent to this item pocket [ItemCategory]
names The name of this item category listed in different languages [Name]

Languages

api/v2/language/{id or name}
Name Description Data Type
id The identifier for this item pocket resource integer
name The name for this item pocket resource string
official Whether or not the games are published in this language boolean
is639 The two-letter code of the country where this language is spoken. Note that it is not unique. string
iso3166 The two-letter code of the language. Note that it is not unique. string
names The name of this language listed in different languages [Name]

Locations

api/v2/location/{id or name}
Name Description Data Type
id The identifier for this location resource integer
name The name for this location resource string
region The region this location can be found in APIReference (Region)
names The name of this language listed in different languages [Name]
game_indices A list of game indices relevent to this location by generation [GenerationGameIndex]
areas Areas that can be found within this location APIReference (LocationArea)

Location Areas

api/v2/location-area/{id}
Name Description Data Type
id The identifier for this location resource integer
name The name for this location resource string
game_index The internal id of an api resource within game data integer
encounter_method_rates A list of methods in which pokemon may be encountered in this area and how likely the method will occur depending on the version of the game [EncounterMethodRate]
location The region this location can be found in APIReference (Region)
names The name of this location area listed in different languages [Name]
pokemon_encounters A list of pokemon that can be encountered in this area along with version specific details about the encounter PokemonEncounter

PokemonEncounter

Name Description Data Type
pokemon The pokemon being encountered APIReference (Pokemon)
version_group_details A list of version groups and encounters with the referenced pokemon that might happen [VersionGroupEncounterDetail]

VersionGroupEncounterDetail

Name Description Data Type
version The game version this encounter happens in APIReference (Version)
max_chance The total percentage of all encounter potential integer
encounter_details A list of encounters and their specifics [Encounter]

Moves

api/v2/move/{id or name}
Name Description Data Type
id The identifier for this location resource integer
name The name for this location resource string
accuracy The percent value of how likely this move is to be successful integer
effect_chance The percent value of how likely it is this moves effect will take effect integer
pp Power points. The number of times this move can be used integer
priority A value between -8 and 8. Sets the order in which moves are executed during battle. See Bulbapedia for greater detail. integer
power The base power of this move with a value of 0 if it does not have a base power integer
contest_combos A detail of normal and super contest combos that require this move [ContestComboSets]
contest_type The type of appeal this move gives a pokemon when used in a contest APIReference (ContestType)
contest_effect The effect the move has when used in a contest APIReference (ContestEffect)
damage_class The type of damage the move inflicts on the target, e.g. physical APIReference (MoveDamageClass)
effect_entries The effect of this move listed in different languages [VerboseEffect]
effect_changes The list of previous effects this move has had across version groups of the games [AbilityEffectChange]
generation The generation in which this move was introduced APIReference (Generation)
meta Meta data about this move MoveMetaData
names The name of this location area listed in different languages [Name]
past_values A list of move resource value changes across ersion groups of the game PastMoveStatValues
stat_changes A list of stats this moves effects and how much it effects them [MoveStatChange]
contest_effect The effect the move has when used in a super contest APIReference (ContestEffect)
target The type of target that will recieve the effects of the attack MoveTarget
type The elemental type of this move Type

ContestComboSets

Name Description Data Type
normal A detail of moves this move can be used before or after, granting additional appeal points in contests [ContestComboDetail]
super A detail of moves this move can be used before or after, granting additional appeal points in super contests [ContestComboDetail]

ContestComboDetail

Name Description Data Type
use_before A list of moves to use before this move [APIReference (Move)]
use_after A list of moves to use after this move [APIReference (Move)]

MoveMetaData

Name Description Data Type
ailment The status ailment this move inflicts on its target APIReference MoveAilment
category The category of move this move falls under, e.g. damage or ailment APIReference (Move)
min_hits The minimum number of times this move hits. Null if it always only hits once. integer
max_hits The maximum number of times this move hits. Null if it always only hits once. integer
min_turns The minimum number of turns this move continues to take effect. Null if it always only lasts one turn. integer
max_turns The maximum number of turns this move continues to take effect. Null if it always only lasts one turn. integer
drain HP drain (if positive) or Recoil damage (if negative), in percent of damage done integer
healing The amount of hp gained by the attacking pokemon, in percent of it's maximum HP integer
crit_rate Critical hit rate bonus integer
ailment_chance The likelyhood this attack will cause an ailment integer
flinch_chance The likelyhood this attack will cause the target pokemon to flinch integer
stat_chance The likelyhood this attack will cause a stat change in the target pokemon integer

MoveStatChange

Name Description Data Type
change The amount of change integer
stat The stat being affected APIReference Stat

PastMoveStatValues

Name Description Data Type
accuracy The percent value of how likely this move is to be successful integer
effect_chance The percent value of how likely it is this moves effect will take effect integer
power The base power of this move with a value of 0 if it does not have a base power integer
pp Power points. The number of times this move can be used integer
effect_entries The effect of this move listed in different languages [VerboseEffect]
type The elemental type of this move Type
version group The version group in which these move stat values were in effect Type

Move Ailments

api/v2/move-ailment/{id or name}
Name Description Data Type
id The identifier for this move ailment resource integer
name The name for this move ailment resource string
moves A list of moves that cause this ailment [APIReference (Move)]
names The name of this move ailment listed in different languages [Name]

Move Battle Style

api/v2/move-battle-style/{id or name}
Name Description Data Type
id The identifier for this move battle style resource integer
name The name for this move battle style resource string
names The name of this move battle style listed in different languages [Name]

Move Category

api/v2/move-category/{id or name}
Name Description Data Type
id The identifier for this move category resource integer
name The name for this move category resource string
moves A list of moves that fall into this category [APIReference (Move)]
descriptions The description of this move ailment listed in different languages [Description]

Move Damage Class

api/v2/move-damage-class/{id or name}
Name Description Data Type
id The identifier for this move damage class resource integer
name The name for this move damage class resource string
descriptions The description of this move damage class listed in different languages [Description]
moves A list of moves that fall into this damage class [APIReference (Move)]
names The name of this move damage class listed in different languages [Name]

Move Learn Mathod

api/v2/move-learn-method/{id or name}
Name Description Data Type
id The identifier for this move learn method resource integer
name The name for this move learn method resource string
descriptions The description of this move learn method listed in different languages [Description]
names The name of this move learn method listed in different languages [Name]
version_groups A list of version groups where moves can be learned through this method [APIReference (VersionGroup)]

Move Target

api/v2/move-target/{id or name}
Name Description Data Type
id The identifier for this move target resource integer
name The name for this move target resource string
descriptions The description of this move target listed in different languages [Description]
moves A list of moves that that are directed at this target [APIReference (Move)]
names The name of this move target listed in different languages [Name]

Nature

api/v2/nature/{id or name}
Name Description Data Type
id The identifier for this nature resource integer
name The name for this nature resource string
decreased_stat The stat decreased by 10% in pokemon with this nature APIReference (Stat
increased_stat The stat increased by 10% in pokemon with this nature APIReference (Stat
hates_flavor The flavor hated by pokemon with this nature APIReference (BerryFlavor
likes_flavor The flavor liked by pokemon with this nature APIReference (BerryFlavor
pokeathlon_stat_changes A list of pokeathlon stats this nature effects and how much it effects them [NatureStatChange]
move_battle_style_preferences A list of battle styles and how likely a pokemon with this nature is to use them in the Battle Palace or Battle Tent. [MoveBattleStylePreference]
names The name of this nature listed in different languages [Name]

NatureStatChange

Name Description Data Type
change The amount of change integer
stat The stat being affected APIReference (PokeathlonStat)

MoveBattleStylePreference

Name Description Data Type
low_hp_preference Chance of using the move, in percent, if HP is under one half integer
high_hp_preference Chance of using the move, in percent, if HP is over one half integer
move_battle_style The move battle style APIReference (MoveBattleStyle)

PalParkArea

api/v2/pal-park-area/{id or name}
Name Description Data Type
id The identifier for this pal park area resource integer
name The name for this pal park area resource string
names The name of this pal park area listed in different languages [Name]
pokemon_encounters A list of pokemon encountered in thi pal park area along with details PalParkEncounter

PalParkEncounter

Name Description Data Type
base_score The base score given to the player when this pokemon is caught during a pal park run integer
rate The base rate for encountering this pokemon in this pal park area integer
pokemon_species The pokemon species being encountered APIResource (PokemonSpecies)

Pokedex

api/v2/pokedex/{id or name}
Name Description Data Type
id The identifier for this pokedex resource integer
name The name for this pokedex resource string

Common Models

APIResource

Name Description Data Type
name The name of the referenced resource string
url The url of the referenced resource string

Description

Name Description Data Type
description The localized description for an api resource in a specific language string
language The language this name is in APIResource (Language)

Effect

Name Description Data Type
effect The localized effect text for an api resource in a specific language string
language The language this effect is in APIResource (Language)

Encounter

Name Description Data Type
min_level The lowest level the pokemon could be encountered at integer
max_level The highest level the pokemon could be encountered at integer
condition_values A list of condition values that must be in effect for this encounter to occur [APIResource (EncounterConditionValue)]
chance percent chance that this encounter will occur integer
method The method by which this encounter happens APIResource (EncounterMethod)

FlavorText

Name Description Data Type
flavor_text The localized name for an api resource in a specific language string
language The language this name is in APIResource (Language)

GenerationGameIndex

Name Description Data Type
game_index The internal id of an api resource within game data integer
generation The generation relevent to this game index APIResource (Generation)

Name

Name Description Data Type
name The localized name for an api resource in a specific language string
language The language this name is in APIResource (Language)

VerboseEffect

Name Description Data Type
effect The localized effect text for an api resource in a specific language string
short_effect The localized effect text in brief string
language The language this effect is in APIResource (Language)

VersionGameIndex

Name Description Data Type
game_index The internal id of an api resource within game data integer
version The version relevent to this game index APIResource (Version)

VersionSpecificFlavorText TODO

Name Description Data Type
flavor_text The localized name for an api resource in a specific language string
language The language this name is in APIResource (Language)