Skip to contents

The get_pokemon() function is used to get structured data from the "PokeAPI" API service.

Usage

get_pokemon(x, ...)

Arguments

x

Pokemon name or ID.

...

Any other optional parameter that can be provided.

Value

A dataframe for the requested Pokemon.

Details

There are two ways to get the data:

  1. By providing the Pokemon name (lowercase) or Pokemon ID.

  2. By providing limit and offset parameters.

Examples

if (FALSE) {
mew <- get_pokemon("mew")
gen_1 <- get_pokemon(limit = 151, offset = 0)
}