Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's impossible to get the order of level-up moves #1206

Closed
OpenFormEon opened this issue Feb 16, 2025 · 1 comment
Closed

It's impossible to get the order of level-up moves #1206

OpenFormEon opened this issue Feb 16, 2025 · 1 comment

Comments

@OpenFormEon
Copy link

For websites such as Bulbapedia and Serebii, a Pokemon's level-up move list has a defined order, and you can expect a wild Pokemon of a given level to have the most recent four moves relative to its level. As far as I can tell, the PokeAPI has no such feature.

I wanted a script that gets a Pokemon's current four moves via its level. This is easy to do from a glance at Serebii/Bulbapedia. For example, lets say I come across a level 2 Garchomp in a randomizer. Garchomp has five moves known at level 1, but there's a specific order. Fire Fang comes first, which means it gets "overwritten" by Sandstorm according to this order. The PokeAPI makes no distinction on move learn order, so it's impossible to know what moves this Garchomp should have. Instead, the PokeAPI sorts all of a Pokemon's possible moves by the move ID.

@Naramsim
Copy link
Member

Hi! We lack that part in the exposted API but we should have it in our CSV! I added a change to show it! Can you test it? https://staging.pokeapi.co/api/v2/pokemon/garchomp

Also, it's unclear to me if we should display null when we don't have any data or if it's better to default to 1. Do you have any suggestions?

#1207

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants