Not all pokemons fetchable by name
Opened this issue · 3 comments
There are some pokemons for which you can't get the data by searching by their name for example keldeo, deoxys, mimikyu. But you can get their data by their dex number.
Hey @Mehul343, this seems to be an issue with how PokeAPI handles different forms; in the case of Keldeo, you could try keldeo-ordinary
or keldeo-resolute
. There's more detail in PokeAPI/pokeapi#401. This library doesn't really concern itself with the details of the Pokemon itself, so it's not an issue I can readily solve.
There are some pokemons for which you can't get the data by searching by their name for example keldeo, deoxys, mimikyu. But you can get their data by their dex number.
Yea this is an issue with several pokemon. As far as i am able to tell i think the best bet is to fetch a Species Resource via name and use the response ID to fetch the pokemon resource by ID. This seems the most consistent way to get a reliable result.
... As far as i am able to tell i think the best bet is to fetch a Species Resource via name and use the response ID to fetch the pokemon resource by ID...
Ah, this is an interesting idea, @d0rf47, it might be worth implementing as an extra API function.
I'm not entirely sure what the best way of going about that would be, so I'm open to any new ideas here.