Get-PokePokemonSpecies

SYNOPSIS

Gets Pokemon species from PokeAPI

SYNTAX

ByAll (Default)

Get-PokePokemonSpecies [-Offset <int>] [-Limit <int>] [-AllResults] [-Query <string>] [-NoCache]

ById

Get-PokePokemonSpecies -Id <int> [-NoCache]

ByName

Get-PokePokemonSpecies -Name <string> [-NoCache]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

The Get-PokePokemonSpecies cmdlet gets Pokemon species from PokeAPI

A Pokemon Species forms the basis for at least one Pokemon. Attributes of a Pokemon species are shared across all varieties of Pokemon within the species. A good example is Wormadam; Wormadam is the species which can be found in three different varieties, Wormadam-Plant, Wormadam-Sandy and Wormadam-Trash.

EXAMPLES

EXAMPLE 1

Get-PokePokemonSpecies

Gets the first 20 Pokemon species

EXAMPLE 2

Get-PokePokemonSpecies -Offset 20 -Limit 100

Gets the next 100 Pokemon species after skipping the first 20

EXAMPLE 3

Get-PokePokemonSpecies -AllResults

Gets all of the Pokemon species using 100 resources per page

EXAMPLE 4

Get-PokePokemonSpecies -Id 1

Gets the Pokemon species with the defined id

EXAMPLE 5

Get-PokePokemonSpecies -Name wormadam

Gets the Pokemon species with the defined name

PARAMETERS

-AllResults

Returns all resources from an endpoint by following each next page link

If the Limit parameter is not defined then 100 resources are requested per page

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases:
- AllPages
ParameterSets:
- Name: ByAll
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Id

Defines id of the resource

Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ById
  Position: Named
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Limit

Defines the amount of resources to return with each page

By default only 20 resources are returned

Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByAll
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Name

Defines name of the resource

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByName
  Position: Named
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-NoCache

Bypasses the in-memory response cache and requests the resource from PokeAPI

By default successful responses are cached for one hour

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Offset

Defines the resource to start from when listing resources

By default the list starts at the first resource

Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByAll
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Query

Defines a case-insensitive search applied to the name of the resources

This is only available on a self-hosted PokeAPI and is not supported by pokeapi.co

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByAll
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.Int32

System.String

OUTPUTS

System.Management.Automation.PSCustomObject

Getting a resource by Id or Name returns the [ PokemonSpeciesDetail ] schema from the PokeAPI OpenAPI spec

Listing resources returns the [ PaginatedPokemonSpeciesSummaryList ] schema from the PokeAPI OpenAPI spec

NOTES

Endpoint : GET /pokemon-species Endpoint : GET /pokemon-species/{id} Endpoint : GET /pokemon-species/{name}