PokeAPI / pokeapi

The Pokémon API
https://pokeapi.co
BSD 3-Clause "New" or "Revised" License
4.13k stars 931 forks source link

Add extra data to "/pokemon/{id or name}" #653

Closed andreas-hub closed 3 years ago

andreas-hub commented 3 years ago

Hello,

I would like to suggest adding gender ratio and pokemon color to the resource of "/pokemon/{id or name}".

Example:

...
"color": "red",
"gender": {
    "female": 50, //percentage
    "male": 50
}
...

The reason I'm suggesting this feature is because at the moment there is no way to get the color and gender ratio of a single pokemon (at least from what I found in the documantion). The only way to do it, is to get all the colors/genders and search for the pokemon in the resources, this way in my opinion is not optimal at all and defies the whole reason for an API.

Naramsim commented 3 years ago

Use the pokemon-species endpoint.

https://pokeapi.co/api/v2/pokemon-species/venusaur

andreas-hub commented 3 years ago

Oh my bad, I missed this end point. Sorry.