getSkills
getSkills
allows the retrieval of data for all skills (also known as special abilities), or for a subset of skills.
Examples
Get All Skills
getSkills
will return data for all skills if not given any options.
Get Specific Skills
getSkills
accepts an options
object, which supports an ids
array. This array can be used to filter the results if you're only looking for specific skills.
Get Skills for a Specific Pokémon
getSkills
also supports an options.pokemonIDs
array. This array will filter results by the Pokémon to whom the skill belongs.
NOTE: options.ids
and options.pokemonIDs
may not be used together. If you attempt to provide both options, an error will be thrown. If you are looking for an intersection of this data, you will need to filter the lists yourself.
Disable parsing of enums
By default, getSkills
will parse the slot
and type
fields to their representational strings (e.g. 'Move 1'
/ 'Move 2'
and 'Dash'
/ 'Area'
, respectively). If you would prefer to render these strings yourself, you can pass parseEnums: false
:
Options
Last updated