GET/api/v2/generation/

List generations

Lists generations, which group Pokémon games by the Pokémon, moves, abilities, and types they include. Use limit and offset to control the result page, or search generation names with q, which is available only on local deployments.

3 parameters
limitintegeroptional
The number of results to return per page.
offsetintegeroptional
The index of the first result to return.
qstringoptional
A case-insensitive search applied to the name property; available only on local deployments.

1 status code
200Returns the total result count, an array of generation references, and next and previous page URLs when available.
countintegerrequired
nextstringoptional
previousstringoptional
resultsarray<object>required

Error handling

limit controls the number of results per page, and offset sets the starting index. Use q to filter by name with a case-insensitive search; this parameter is available only on local deployments.