Games Group

July 31, 2025 ยท View on GitHub

The following are the resources available in the Games group of the PokeAPI.

Generation

Get single Generation resource by Name or ID:
// Main client example with ID
generation, err := client.Games.GetGeneration("1")

// Individual resource group example with Name
generation, err := gamesGroup.GetGeneration("generation-i")
Get list of Generation resource:
// Main client example
generationList, err := client.Games.GetGenerationList(limit, offset)

// Individual resource group example
generationList, err := gamesGroup.GetGenerationList(limit, offset)
Get Generation resource URL:
// Main client example
generationURL := client.Games.GetGenerationURL()

// Individual resource group example
generationURL := gamesGroup.GetGenerationURL()

Pokedex

Get single Pokedex resource by Name or ID:
// Main client example with ID
pokedex, err := client.Games.GetPokedex("1")

// Individual resource group example with Name
pokedex, err := gamesGroup.GetPokedex("kanto")
Get list of Pokedex resource:
// Main client example
pokedexList, err := client.Games.GetPokedexList(limit, offset)

// Individual resource group example
pokedexList, err := gamesGroup.GetPokedexList(limit, offset)
Get Pokedex resource URL:
// Main client example
pokedexURL := client.Games.GetPokedexURL()

// Individual resource group example
pokedexURL := gamesGroup.GetPokedexURL()

Version

Get single Version resource by Name or ID:
// Main client example with ID
version, err := client.Games.GetVersion("1")

// Individual resource group example with Name
version, err := gamesGroup.GetVersion("red")
Get list of Version resource:
// Main client example
versionList, err := client.Games.GetVersionList(limit, offset)

// Individual resource group example
versionList, err := gamesGroup.GetVersionList(limit, offset)
Get Version resource URL:
// Main client example
versionURL := client.Games.GetVersionURL()

// Individual resource group example
versionURL := gamesGroup.GetVersionURL()

VersionGroup

Get single Version Group resource by Name or ID:
// Main client example with ID
versionGroup, err := client.Games.GetVersionGroup("1")

// Individual resource group example with Name
versionGroup, err := gamesGroup.GetVersionGroup("red-blue")
Get list of Version Group resource:
// Main client example
versionGroupList, err := client.Games.GetVersionGroupList(limit, offset)

// Individual resource group example
versionGroupList, err := gamesGroup.GetVersionGroupList(limit, offset)
Get Version Group resource URL:
// Main client example
versionGroupURL := client.Games.GetVersionGroupURL()

// Individual resource group example
versionGroupURL := gamesGroup.GetVersionGroupURL()