### Get Encounter Method by ID or Name Source: https://pokeapi.co/docs/v2 Retrieves a specific encounter method, which defines how a player might encounter Pokémon in the wild. ```APIDOC ## GET https://pokeapi.co/api/v2/encounter-method/{id or name}/ ### Description Methods by which the player might can encounter Pokémon in the wild, e.g., walking in tall grass. ### Method GET ### Endpoint https://pokeapi.co/api/v2/encounter-method/{id or name}/ ### Parameters #### Path Parameters - **id or name** (integer or string) - Required - The ID or name of the encounter method. ### Response #### Success Response (200) - **id** (integer) - The identifier for this resource. - **name** (string) - The name for this resource. - **order** (integer) - A good value for sorting. - **names** (list Name) - The name of this resource listed in different languages. ``` -------------------------------- ### GET /move-battle-style/{id or name}/ Source: https://pokeapi.co/docs/v2 Retrieve information about a specific move battle style, including its ID, name, and names in different languages. ```APIDOC ## GET /move-battle-style/{id or name}/ ### Description Retrieve information about a specific move battle style, including its ID, name, and names in different languages. ### Method GET ### Endpoint https://pokeapi.co/api/v2/move-battle-style/{id or name}/ ### Parameters #### Path Parameters - **id or name** (integer or string) - Required - The ID or name of the move battle style. ### Response #### Success Response (200) - **id** (integer) - The identifier for this resource. - **name** (string) - The name for this resource. - **names** (list of Name) - The name of this resource listed in different languages. ### Response Example ```json { "id": 1, "name": "attack", "names": [ { "name": "Attack", "language": { "name": "en", "url": "https://pokeapi.co/api/v2/language/9/" } } ] } ``` ``` -------------------------------- ### GET /api/v2/berry-firmness/{id or name}/ Source: https://pokeapi.co/docs/v2 Retrieves information about berry firmness levels, such as 'soft' or 'hard'. This endpoint allows querying by ID or name. ```APIDOC ## GET /api/v2/berry-firmness/{id or name}/ ### Description Retrieves information about berry firmness levels, such as 'soft' or 'hard'. This endpoint allows querying by ID or name. ### Method GET ### Endpoint https://pokeapi.co/api/v2/berry-firmness/{id or name}/ ### Parameters #### Path Parameters - **id or name** (integer or string) - Required - The ID or name of the berry firmness to retrieve. #### BerryFirmness (type) Name| Description| Type ---|---|--- id| The identifier for this resource. | _integer_ name| The name for this resource. | _string_ berries| A list of the berries with this firmness. | list __Named APIResource_ (_Berry_)_ names| The name of this resource listed in different languages. | list _Name_ ``` -------------------------------- ### Named Resource List Example Source: https://pokeapi.co/docs/v2 Demonstrates the structure of a paginated list of named API resources. Use query parameters 'limit' and 'offset' to control pagination. ```json { "count": 248, "next": "https://pokeapi.co/api/v2/ability/?limit=20&offset=20", "previous": null, "results": [ { "name": "stench", "url": "https://pokeapi.co/api/v2/ability/1/" } ] } ``` -------------------------------- ### Get Item by ID or Name Source: https://pokeapi.co/docs/v2 Retrieves detailed information about a specific item using its unique ID or name. ```APIDOC ## GET /item/{id or name}/ ### Description An item is an object in the games which the player can pick up, keep in their bag, and use in some manner. They have various uses, including healing, powering up, helping catch Pokémon, or to access a new area. ### Method GET ### Endpoint https://pokeapi.co/api/v2/item/{id or name}/ ### Parameters #### Path Parameters - **id or name** (integer or string) - Required - The ID or name of the item. ### Response #### Success Response (200) - **id** (integer) - The identifier for this resource. - **name** (string) - The name for this resource. - **cost** (integer) - The price of this item in stores. - **fling_power** (integer) - The power of the move Fling when used with this item. - **fling_effect** (Named APIResource) - The effect of the move Fling when used with this item. - **attributes** (list of Named APIResource) - A list of attributes this item has. - **category** (Named APIResource) - The category of items this item falls into. - **effect_entries** (list of Verbose Effect) - The effect of this ability listed in different languages. - **flavor_text_entries** (list of Version GroupFlavorText) - The flavor text of this ability listed in different languages. - **game_indices** (list of Generation GameIndex) - A list of game indices relevent to this item by generation. - **names** (list of Name) - The name of this item listed in different languages. - **sprites** (ItemSprites) - A set of sprites used to depict this item in the game. - **held_by_pokemon** (list of Item HolderPokemon) - A list of Pokémon that might be found in the wild holding this item. - **baby_trigger_for** (API Resource) - An evolution chain this item requires to produce a bay during mating. - **machines** (list of Machine VersionDetail) - A list of the machines related to this item. ### Request Example ```json { "example": "request body" } ``` ### Response Example ```json { "id": 1, "name": "master-ball", "cost": 0, "fling_power": 10, "fling_effect": { "name": "flinch", "url": "https://pokeapi.co/api/v2/item-fling-effect/7/" }, "attributes": [ { "name": "holdable", "url": "https://pokeapi.co/api/v2/item-attribute/5/" } ], "category": { "name": "standard-balls", "url": "https://pokeapi.co/api/v2/item-category/34/" }, "effect_entries": [ { "effect": "Used in battle : [Catches]{mechanic:catch} a wild Pokémon without fail. If used in a trainer battle, nothing happens and the ball is lost.", "short_effect": "Catches a wild Pokémon every time.", "language": { "name": "en", "url": "https://pokeapi.co/api/v2/language/9/" } } ], "flavor_text_entries": [ { "text": "The best Poké Ball with the ultimate level of performance. With it, you will catch any wild Pokémon without fail.", "version_group": { "name": "x-y", "url": "https://pokeapi.co/api/v2/version-group/15/" }, "language": { "name": "en", "url": "https://pokeapi.co/api/v2/language/9/" } } ], "game_indices": [ { "game_index": 1, "generation": { "name": "generation-vi", "url": "https://pokeapi.co/api/v2/generation/6/" } } ], "names": [ { "name": "Master Ball", "language": { "name": "en", "url": "https://pokeapi.co/api/v2/language/9/" } } ], "sprites": { "default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/items/master-ball.png" }, "held_by_pokemon": [ { "pokemon": { "name": "chansey", "url": "https://pokeapi.co/api/v2/pokemon/113/" }, "version_details": [ { "rarity": 0, "version": { "name": "red", "url": "https://pokeapi.co/api/v2/version/1/" } } ] } ], "baby_trigger_for": { "url": "https://pokeapi.co/api/v2/evolution-chain/1/" }, "machines": [] } ``` ``` -------------------------------- ### Unnamed Resource List Example Source: https://pokeapi.co/docs/v2 Illustrates the structure of a paginated list of unnamed API resources. Pagination can be controlled using 'limit' and 'offset' query parameters. ```json { "count": 541, "next": "https://pokeapi.co/api/v2/evolution-chain?offset=20&limit=20", "previous": null, "results": [ { "url": "https://pokeapi.co/api/v2/evolution-chain/1/" } ] } ``` -------------------------------- ### Get Pokemon by Name or ID Source: https://pokeapi.co/ Retrieve detailed information about a specific Pokémon by providing its name or unique ID. ```APIDOC ## GET /pokemon/{id or name}/ ### Description Retrieves detailed information about a specific Pokémon. ### Method GET ### Endpoint /api/v2/pokemon/{id or name}/ ### Parameters #### Path Parameters - **id or name** (string) - Required - The name or ID of the Pokémon to retrieve. ### Response #### Success Response (200) - **abilities** (array) - A list of the Pokémon's abilities. - **base_experience** (integer) - The base experience gained when defeating the Pokémon. - **cries** (object) - URLs for the Pokémon's cries. - **forms** (array) - A list of the Pokémon's forms. - **game_indices** (array) - Game indices associated with the Pokémon. - **height** (integer) - The Pokémon's height in decimetres. - **held_items** (array) - A list of items the Pokémon can hold. - **id** (integer) - The Pokémon's unique ID. - **is_default** (boolean) - Indicates if this is the default form of the Pokémon. - **location_area_encounters** (string) - URL to the location area encounters for the Pokémon. - **moves** (array) - A list of moves the Pokémon can learn. - **name** (string) - The name of the Pokémon. - **order** (integer) - The order of the Pokémon in the Pokédex. - **past_abilities** (array) - A list of past abilities the Pokémon had. - **past_types** (array) - A list of past types the Pokémon had. - **species** (object) - Information about the Pokémon's species. - **sprites** (object) - URLs for various sprites of the Pokémon. - **stats** (array) - A list of the Pokémon's base stats. - **types** (array) - A list of the Pokémon's types. - **weight** (integer) - The Pokémon's weight in hectograms. ### Request Example ```json { "example": "GET /api/v2/pokemon/ditto/" } ``` ### Response Example ```json { "abilities": [ { "is_hidden": false, "slot": 1, "ability": { "name": "limber", "url": "https://pokeapi.co/api/v2/ability/7/" } }, { "is_hidden": true, "slot": 3, "ability": { "name": "imposter", "url": "https://pokeapi.co/api/v2/ability/150/" } } ], "base_experience": 101, "cries": { "latest": "https://raw.githubusercontent.com/PokeAPI/cries/main/cries/pokemon/latest/132.ogg", "legacy": "https://raw.githubusercontent.com/PokeAPI/cries/main/cries/pokemon/legacy/132.ogg" }, "forms": [ { "name": "ditto", "url": "https://pokeapi.co/api/v2/pokemon-form/132/" } ], "game_indices": [ { "game_index": 159, "version": { "name": "red", "url": "https://pokeapi.co/api/v2/version/1/" } } ], "height": 3, "held_items": [ { "item": { "name": "metal-powder", "url": "https://pokeapi.co/api/v2/item/234/" }, "version_details": [ { "rarity": 10, "version": { "name": "ruby", "url": "https://pokeapi.co/api/v2/version/5/" } } ] } ], "id": 132, "is_default": true, "location_area_encounters": "https://pokeapi.co/api/v2/pokemon/132/encounters", "moves": [ { "move": { "name": "transform", "url": "https://pokeapi.co/api/v2/move/144/" }, "version_group_details": [ { "level_learned_at": 1, "move_learn_method": { "name": "level-up", "url": "https://pokeapi.co/api/v2/move-learn-method/1/" }, "version_group": { "name": "red-blue", "url": "https://pokeapi.co/api/v2/version-group/1/" } } ] } ], "name": "ditto", "order": 214, "past_abilities": [], "past_types": [], "species": { "name": "ditto", "url": "https://pokeapi.co/api/v2/pokemon-species/132/" }, "sprites": { "back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/back/132.png", "back_female": null, "back_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/back/shiny/132.png", "back_shiny_female": null, "front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/132.png", "front_female": null, "front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/shiny/132.png", "front_shiny_female": null, "other": { "dream_world": { "front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/dream-world/132.svg", "front_female": null }, "official-artwork": { "front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/132.png" } }, "versions": { "generation-i": { "red-blue": { "back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/red-blue/back/132.png", "back_gray": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/red-blue/back/gray/132.png", "front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/red-blue/132.png", "front_gray": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/red-blue/gray/132.png" }, "yellow": { "back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/yellow/back/132.png", "back_gray": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/yellow/back/gray/132.png", "front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/yellow/132.png", "front_gray": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/yellow/gray/132.png" } } } }, "stats": [ { "base_stat": 60, "effort": 0, "stat": { "name": "hp", "url": "https://pokeapi.co/api/v2/stat/1/" } }, { "base_stat": 100, "effort": 1, "stat": { "name": "attack", "url": "https://pokeapi.co/api/v2/stat/2/" } } ], "types": [ { "slot": 1, "type": { "name": "normal", "url": "https://pokeapi.co/api/v2/type/1/" } } ], "weight": 40 } ``` -------------------------------- ### GET /location/{id or name}/ Source: https://pokeapi.co/docs/v2 Retrieve details about a specific game location, such as a city or route. You can identify the location by its unique ID or its name. ```APIDOC ## GET /location/{id or name}/ ### Description Retrieve details about a specific game location, such as a city or route. You can identify the location by its unique ID or its name. ### Method GET ### Endpoint https://pokeapi.co/api/v2/location/{id or name}/ ### Parameters #### Path Parameters - **id or name** (integer or string) - Required - The ID or name of the location to retrieve. ### Response #### Success Response (200) - **id** (integer) - The identifier for this resource. - **name** (string) - The name for this resource. - **region** (Named APIResource) - The region this location can be found in. - **names** (list Name) - The name of this resource listed in different languages. - **game_indices** (list Generation GameIndex) - A list of game indices relevant to this location by generation. - **areas** (list Named APIResource) - Areas that can be found within this location. ``` -------------------------------- ### Get Version by ID or Name Source: https://pokeapi.co/docs/v2 Retrieves information about a specific game version, such as Red, Blue, or Yellow. It includes details on its names in different languages and the version group it belongs to. ```APIDOC ## GET /version/{id or name}/ ### Description Versions of the games, e.g., Red, Blue or Yellow. ### Method GET ### Endpoint https://pokeapi.co/api/v2/version/{id or name}/ ### Parameters #### Path Parameters - **id or name** (integer or string) - Required - The ID or name of the version to retrieve. ### Response #### Success Response (200) - **id** (integer) - The identifier for this resource. - **name** (string) - The name for this resource. - **names** (list of Name) - The name of this resource listed in different languages. - **version_group** (Named APIResource (Version Group)) - The version group this version belongs to. ``` -------------------------------- ### GET /move-category/{id or name}/ Source: https://pokeapi.co/docs/v2 Retrieve information about a specific move category, including its ID, name, associated moves, descriptions, and names in different languages. ```APIDOC ## GET /move-category/{id or name}/ ### Description Retrieve information about a specific move category, including its ID, name, associated moves, descriptions, and names in different languages. ### Method GET ### Endpoint https://pokeapi.co/api/v2/move-category/{id or name}/ ### Parameters #### Path Parameters - **id or name** (integer or string) - Required - The ID or name of the move category. ### Response #### Success Response (200) - **id** (integer) - The identifier for this resource. - **name** (string) - The name for this resource. - **moves** (list of Named APIResource (Move)) - A list of moves that fall into this category. - **descriptions** (list of Description) - The description of this resource listed in different languages. ### Response Example ```json { "id": 1, "name": "ailment", "moves": [ { "name": "sing", "url": "https://pokeapi.co/api/v2/move/47/" } ], "descriptions": [ { "description": "No damage; inflicts status ailment", "language": { "name": "en", "url": "https://pokeapi.co/api/v2/language/9/" } } ] } ``` ``` -------------------------------- ### GET /move-ailment/{id or name}/ Source: https://pokeapi.co/docs/v2 Retrieve information about a specific move ailment, including its ID, name, associated moves, and names in different languages. ```APIDOC ## GET /move-ailment/{id or name}/ ### Description Retrieve information about a specific move ailment, including its ID, name, associated moves, and names in different languages. ### Method GET ### Endpoint https://pokeapi.co/api/v2/move-ailment/{id or name}/ ### Parameters #### Path Parameters - **id or name** (integer or string) - Required - The ID or name of the move ailment. ### Response #### Success Response (200) - **id** (integer) - The identifier for this resource. - **name** (string) - The name for this resource. - **moves** (list of Named APIResource (Move)) - A list of moves that cause this ailment. - **names** (list of Name) - The name of this resource listed in different languages. ### Response Example ```json { "id": 1, "name": "paralysis", "moves": [ { "name": "thunder-punch", "url": "https://pokeapi.co/api/v2/move/9/" } ], "names": [ { "name": "Paralysis", "language": { "name": "en", "url": "https://pokeapi.co/api/v2/language/9/" } } ] } ``` ``` -------------------------------- ### GET /move-damage-class/{id or name}/ Source: https://pokeapi.co/docs/v2 Retrieve information about a specific move damage class, including its ID, name, associated moves, descriptions, and names in different languages. ```APIDOC ## GET /move-damage-class/{id or name}/ ### Description Retrieve information about a specific move damage class, including its ID, name, associated moves, descriptions, and names in different languages. ### Method GET ### Endpoint https://pokeapi.co/api/v2/move-damage-class/{id or name}/ ### Parameters #### Path Parameters - **id or name** (integer or string) - Required - The ID or name of the move damage class. ### Response #### Success Response (200) - **id** (integer) - The identifier for this resource. - **name** (string) - The name for this resource. - **descriptions** (list of Description) - The description of this resource listed in different languages. - **moves** (list of Named APIResource (Move)) - A list of moves that fall into this damage class. - **names** (list of Name) - The name of this resource listed in different languages. ### Response Example ```json { "id": 1, "name": "status", "descriptions": [ { "description": "ダメージ㠪㠄", "language": { "name": "ja", "url": "https://pokeapi.co/api/v2/language/1/" } } ], "moves": [ { "name": "swords-dance", "url": "https://pokeapi.co/api/v2/move/14/" } ], "names": [] } ``` ``` -------------------------------- ### GET /pal-park-area/{id or name}/ Source: https://pokeapi.co/docs/v2 Retrieves information about a specific Pal Park Area, identified by its ID or name. This includes details about Pokémon encounters within that area. ```APIDOC ## GET /pal-park-area/{id or name}/ ### Description Retrieves information about a specific Pal Park Area, identified by its ID or name. This includes details about Pokémon encounters within that area. ### Method GET ### Endpoint https://pokeapi.co/api/v2/pal-park-area/{id or name}/ ### Parameters #### Path Parameters - **id or name** (integer or string) - Required - The ID or name of the Pal Park Area. ### Response #### Success Response (200) - **id** (integer) - The identifier for this resource. - **name** (string) - The name for this resource. - **names** (list Name) - The name of this resource listed in different languages. - **pokemon_encounters** (list PalParkEncounterSpecies) - A list of Pokémon encountered in this pal park area along with details. #### Response Example { "example": "{ \"id\": 1, \"name\": \"forest\", \"names\": [ { \"name\": \"Forest\", \"language\": {\"name\": \"en\", \"url\": \"https://pokeapi.co/api/v2/language/9/\"} } ], \"pokemon_encounters\": [ { \"base_score\": 30, \"rate\": 50, \"pokemon_species\": {\"name\": \"caterpie\", \"url\": \"https://pokeapi.co/api/v2/pokemon-species/10/\"} } ] }" } ``` -------------------------------- ### GET /region/{id or name}/ Source: https://pokeapi.co/docs/v2 Retrieves information about a specific Pokémon region, identified by its ID or name. This includes details about locations, generations, and Pokédexes within that region. ```APIDOC ## GET /region/{id or name}/ ### Description Retrieves information about a specific Pokémon region, identified by its ID or name. This includes details about locations, generations, and Pokédexes within that region. ### Method GET ### Endpoint https://pokeapi.co/api/v2/region/{id or name}/ ### Parameters #### Path Parameters - **id or name** (integer or string) - Required - The ID or name of the region. ### Response #### Success Response (200) - **id** (integer) - The identifier for this resource. - **locations** (list Named APIResource (Location)) - A list of locations that can be found in this region. - **name** (string) - The name for this resource. - **names** (list Name) - The name of this resource listed in different languages. - **main_generation** (Named APIResource (Generation)) - The generation this region was introduced in. - **pokedexes** (list Named APIResource (Pokedex)) - A list of pokédexes that catalogue Pokémon in this region. - **version_groups** (list Named APIResource (Version Group)) - A list of version groups where this region can be visited. #### Response Example { "example": "{ \"id\": 1, \"locations\": [ {\n \"name\": \"celadon-city\", \"url\": \"https://pokeapi.co/api/v2/location/67/\" } ], \"name\": \"kanto\", \"names\": [ { \"name\": \"Kanto\", \"language\": {\"name\": \"de\", \"url\": \"https://pokeapi.co/api/v2/language/6/\"} } ], \"main_generation\": {\"name\": \"generation-i\", \"url\": \"https://pokeapi.co/api/v2/generation/1/\"}, \"pokedexes\": [ {\n \"name\": \"kanto\", \"url\": \"https://pokeapi.co/api/v2/pokedex/2/\" } ], \"version_groups\": [ {\n \"name\": \"red-blue\", \"url\": \"https://pokeapi.co/api/v2/version-group/1/\" } ] }" } ``` -------------------------------- ### Get Pokemon Form by ID or Name Source: https://pokeapi.co/docs/v2 Retrieves information about a specific Pokémon form, identified by its ID or name. This includes details about its appearance, default status, and associated Pokémon. ```APIDOC ## GET /pokemon-form/{id or name}/ ### Description Retrieves information about a specific Pokémon form, identified by its ID or name. This includes details about its appearance, default status, and associated Pokémon. ### Method GET ### Endpoint https://pokeapi.co/api/v2/pokemon-form/{id or name}/ ### Parameters #### Path Parameters - **id or name** (integer or string) - Required - The ID or name of the Pokémon form to retrieve. ### Response #### Success Response (200) - **id** (integer) - The identifier for this resource. - **name** (string) - The name for this resource. - **order** (integer) - The order in which forms should be sorted within all forms. - **form_order** (integer) - The order in which forms should be sorted within a species' forms. - **is_default** (boolean) - True for exactly one form used as the default for each Pokémon. - **is_battle_only** (boolean) - Whether or not this form can only happen during battle. - **is_mega** (boolean) - Whether or not this form requires mega evolution. - **form_name** (string) - The name of this form. - **pokemon** (Named APIResource) - The Pokémon that can take on this form. - **types** (list of PokemonFormType) - A list of details showing types this Pokémon form has. - **sprites** (PokemonFormSprites) - A set of sprites used to depict this Pokémon form in the game. - **version_group** (Named APIResource) - The version group this Pokémon form was introduced in. - **names** (list of Name) - The form specific full name of this Pokémon form, or empty if the form does not have a specific name. - **form_names** (list of Name) - The form specific form name of this Pokémon form, or empty if the form does not have a specific name. ``` -------------------------------- ### Get Ditto Information Source: https://pokeapi.co/api/v2/pokemon/ditto Retrieves detailed information about the Pokemon Ditto. ```APIDOC ## GET /api/v2/pokemon/ditto ### Description This endpoint retrieves comprehensive data about the Pokemon Ditto, including its attributes, forms, and associated game data. ### Method GET ### Endpoint /api/v2/pokemon/ditto ### Parameters None ### Response #### Success Response (200) - **abilities** (array) - A list of abilities Ditto possesses. - **base_experience** (integer) - The base experience points Ditto yields when defeated. - **forms** (array) - A list of forms Ditto can take. - **game_indices** (array) - Game indices associated with Ditto. - **held_items** (array) - Items that Ditto can hold. - **height** (integer) - Ditto's height in decimetres. #### Response Example ```json { "abilities": [ { "ability": { "name": "limber", "url": "https://pokeapi.co/api/v2/ability/7/" }, "is_hidden": false, "slot": 1 }, { "ability": { "name": "imposter", "url": "https://pokeapi.co/api/v2/ability/150/" }, "is_hidden": true, "slot": 3 } ], "base_experience": 101, "forms": [ { "name": "ditto", "url": "https://pokeapi.co/api/v2/pokemon-form/132/" } ], "game_indices": [ { "game_index": 76, "version": { "name": "red", "url": "https://pokeapi.co/api/v2/version/1/" } } ], "held_items": [ { "item": { "name": "metal-powder", "url": "https://pokeapi.co/api/v2/item/234/" }, "version_details": [ { "rarity": 5, "version": { "name": "ruby", "url": "https://pokeapi.co/api/v2/version/7/" } } ] } ], "height": 3 } ``` ``` -------------------------------- ### GET /api/v2/pokemon/ditto Source: https://pokeapi.co/api/v2/pokemon/ditto Retrieves detailed information about the Pokémon Ditto, including its abilities, types, and stats. ```APIDOC ## GET /api/v2/pokemon/ditto ### Description Retrieves detailed information about the Pokémon Ditto. ### Method GET ### Endpoint /api/v2/pokemon/ditto ### Parameters None ### Request Example None ### Response #### Success Response (200) - **id** (integer) - The identifier for this Pokémon resource. - **name** (string) - The name for this Pokémon resource. - **base_experience** (integer) - With the exception of legendary characters, the base experience that can be gained by defeating the Pokémon. - **height** (integer) - The height of this Pokémon in decimetres. - **is_default** (boolean) - Set for the default form of the species and for rare forms that occur in the wild. - **order** (integer) - The order in which the Pokémon were introduced in the Pokédex. - **weight** (integer) - The weight of this Pokémon in hectograms. - **species** (object) - The species this Pokémon belongs to. - **sprites** (object) - The set of sprites associated with this Pokémon. - **stats** (array) - The stats of this Pokémon. - **types** (array) - The types of this Pokémon. #### Response Example { "id": 132, "name": "ditto", "base_experience": 101, "height": 3, "is_default": true, "order": 227, "weight": 40, "species": { "name": "ditto", "url": "https://pokeapi.co/api/v2/pokemon-species/132/" }, "sprites": { "back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/back/132.png", "back_female": null, "back_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/back/shiny/132.png", "back_shiny_female": null, "front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/132.png", "front_female": null, "front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/shiny/132.png", "front_shiny_female": null }, "stats": [ { "base_stat": 48, "effort": 0, "stat": { "name": "hp", "url": "https://pokeapi.co/api/v2/stat/1/" } }, { "base_stat": 48, "effort": 0, "stat": { "name": "attack", "url": "https://pokeapi.co/api/v2/stat/2/" } }, { "base_stat": 48, "effort": 0, "stat": { "name": "defense", "url": "https://pokeapi.co/api/v2/stat/3/" } }, { "base_stat": 48, "effort": 0, "stat": { "name": "special-attack", "url": "https://pokeapi.co/api/v2/stat/4/" } }, { "base_stat": 48, "effort": 0, "stat": { "name": "special-defense", "url": "https://pokeapi.co/api/v2/stat/5/" } }, { "base_stat": 48, "effort": 0, "stat": { "name": "speed", "url": "https://pokeapi.co/api/v2/stat/6/" } } ], "types": [ { "slot": 1, "type": { "name": "normal", "url": "https://pokeapi.co/api/v2/type/1/" } } ] } ``` -------------------------------- ### Get Magikarp Details Source: https://pokeapi.co/api/v2/pokemon/magikarp Retrieve comprehensive details about the Pokémon Magikarp, including its base experience, forms, height, and more. ```APIDOC ## GET /api/v2/pokemon/magikarp ### Description Fetches detailed information about the Pokémon Magikarp. ### Method GET ### Endpoint /api/v2/pokemon/magikarp ### Parameters None ### Response #### Success Response (200) - **abilities** (array) - A list of the Pokémon's abilities. - **base_experience** (integer) - The base experience gained when defeating the Pokémon. - **cries** (object) - URLs for the Pokémon's cries. - **forms** (array) - A list of the Pokémon's forms. - **game_indices** (array) - A list of game indices for the Pokémon. - **height** (integer) - The height of the Pokémon in decimetres. - **held_items** (array) - A list of items the Pokémon may hold. - **id** (integer) - The identifier for the Pokémon. - **is_default** (boolean) - Indicates if this is the default form of the Pokémon. - **location_area_encounters** (string) - URL for the location area encounters. - **moves** (array) - A list of moves the Pokémon can learn. - **name** (string) - The name of the Pokémon. - **order** (integer) - The order in the national Pokédex. - **species** (object) - Information about the Pokémon's species. - **sprites** (object) - URLs for the Pokémon's sprites. - **stats** (array) - A list of the Pokémon's base stats. - **types** (array) - A list of the Pokémon's types. - **weight** (integer) - The weight of the Pokémon in hectograms. #### Response Example ```json { "abilities": [ { "ability": { "name": "swift-swim", "url": "https://pokeapi.co/api/v2/ability/33/" }, "is_hidden": false, "slot": 1 }, { "ability": { "name": "rattled", "url": "https://pokeapi.co/api/v2/ability/155/" }, "is_hidden": true, "slot": 3 } ], "base_experience": 40, "cries": { "latest": "https://raw.githubusercontent.com/PokeAPI/cries/main/cries/pokemon/latest/129.ogg", "legacy": "https://raw.githubusercontent.com/PokeAPI/cries/main/cries/pokemon/legacy/129.ogg" }, "forms": [ { "name": "magikarp", "url": "https://pokeapi.co/api/v2/pokemon-form/129/" } ], "game_indices": [ { "game_index": 133, "version": { "name": "red", "url": "https://pokeapi.co/api/v2/version/1/" } } ], "height": 9, "held_items": [], "id": 129, "is_default": true, "location_area_encounters": "https://pokeapi.co/api/v2/pokemon/129/encounters", "moves": [ { "move": { "name": "tackle", "url": "https://pokeapi.co/api/v2/move/33/" }, "version_group_details": [ { "level_learned_at": 15, "move_learn_method": { "name": "level-up", "url": "https://pokeapi.co/api/v2/move-learn-method/1/" }, "order": null, "version_group": { "name": "red-blue", "url": "https://pokeapi.co/api/v2/version-group/1/" } } ] } ], "name": "magikarp", "order": 129, "species": { "name": "magikarp", "url": "https://pokeapi.co/api/v2/pokemon-species/129/" }, "sprites": { "back_default": null, "back_female": null, "back_shiny": null, "back_shiny_female": null, "front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/129.png", "front_female": null, "front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/shiny/129.png", "front_shiny_female": null }, "stats": [ { "base_stat": 20, "effort": 0, "stat": { "name": "hp", "url": "https://pokeapi.co/api/v2/stat/1/" } }, { "base_stat": 10, "effort": 0, "stat": { "name": "attack", "url": "https://pokeapi.co/api/v2/stat/2/" } }, { "base_stat": 55, "effort": 0, "stat": { "name": "defense", "url": "https://pokeapi.co/api/v2/stat/3/" } }, { "base_stat": 15, "effort": 0, "stat": { "name": "special-attack", "url": "https://pokeapi.co/api/v2/stat/4/" } }, { "base_stat": 20, "effort": 0, "stat": { "name": "special-defense", "url": "https://pokeapi.co/api/v2/stat/5/" } }, { "base_stat": 25, "effort": 0, "stat": { "name": "speed", "url": "https://pokeapi.co/api/v2/stat/6/" } } ], "types": [ { "slot": 1, "type": { "name": "water", "url": "https://pokeapi.co/api/v2/type/11/" } } ], "weight": 90 } ``` -------------------------------- ### GET /api/v2/berry-flavor/{id or name}/ Source: https://pokeapi.co/docs/v2 Fetches details about berry flavors, like 'spicy' or 'dry'. Flavors influence how Pokémon react to berries based on their nature. Query by ID or name. ```APIDOC ## GET /api/v2/berry-flavor/{id or name}/ ### Description Fetches details about berry flavors, like 'spicy' or 'dry'. Flavors influence how Pokémon react to berries based on their nature. Query by ID or name. ### Method GET ### Endpoint https://pokeapi.co/api/v2/berry-flavor/{id or name}/ ### Parameters #### Path Parameters - **id or name** (integer or string) - Required - The ID or name of the berry flavor to retrieve. #### BerryFlavor (type) Name| Description| Type ---|---|--- id| The identifier for this resource. | _integer_ name| The name for this resource. | _string_ berries| A list of the berries with this flavor. | list _Flavor BerryMap_ contest_type| The contest type that correlates with this berry flavor. | _Named APIResource_ (_Contest Type_) names| The name of this resource listed in different languages. | list _Name_ #### FlavorBerryMap (type) Name| Description| Type ---|---|--- potency| How powerful the referenced flavor is for this berry. | _integer_ berry| The berry with the referenced flavor. | _Named APIResource_ (_Berry_) ```