Get-PokemonTCGCard
SYNOPSIS
Gets PokemonTCG cards
SYNTAX
Show (Default)
Get-PokemonTCGCard [-select <String>] [-q <String>] [-orderBy <String>] [-page <Int64>] [-pageSize <Int64>]
[-allPages] [<CommonParameters>]
Index
Get-PokemonTCGCard -id <String> [-select <String>] [<CommonParameters>]
DESCRIPTION
The Get-PokemonTCGCard cmdlet gets PokemonTCG cards individually, in bulk, & or with advanced query filters (Filters are case-sensitive)
Details on allowed queries can be found at https://docs.pokemontcg.io/api-reference/cards/card-object
EXAMPLES
EXAMPLE 1
Get-PokemonTCGCard
Gets the first 250 PokemonTCG cards
EXAMPLE 2
Get-PokemonTCGCard -id base3-3
Returns the PokemonTCG ditto object with the defined id
EXAMPLE 3
'base3-3' | Get-PokemonTCGCard
Returns the PokemonTCG ditto object with the defined id
EXAMPLE 4
Get-PokemonTCGCard -q 'name:ditto'
Returns the first 250 ditto’s from the PokemonTCG API
EXAMPLE 5
Get-PokemonTCGCard -q 'nationalPokedexNumbers:132'
Returns the first 250 ditto’s from the PokemonTCG API
EXAMPLE 6
Get-PokemonTCGCard -q 'set.id:base*' -Verbose
Returns the first 250 pokemon from any base set starting with the defined term from the PokemonTCG API
Progress information is sent to the console while the cmdlet is running
EXAMPLE 7
Get-PokemonTCGCard -q 'set.id:base* types:water' -Verbose
Returns the first 250 water type pokemon from any base set starting with the defined term from the PokemonTCG API
Progress information is sent to the console while the cmdlet is running
PARAMETERS
-id
The id of the card
Type: String
Parameter Sets: Index
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-select
A comma delimited list of fields to return in the response
By default, all fields are returned if not defined
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-q
The search query
Type: String
Parameter Sets: Show
Aliases: query
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-orderBy
The field(s) to order the results by
Type: String
Parameter Sets: Show
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-page
Defines the page number to return
Type: Int64
Parameter Sets: Show
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-pageSize
Defines the amount of items to return with each page
Type: Int64
Parameter Sets: Show
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-allPages
Returns all items from an endpoint
When using this parameter there is no need to use the page parameter
Type: SwitchParameter
Parameter Sets: Show
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
The PokemonTCG card object contains the following attributes: (https://docs.pokemontcg.io/api-reference/cards/card-object#attributes) id string name string supertype string subtypes list(string) level string hp string types list(string) evolvesFrom string evolvesTo list(string) rules list(string) ancientTrait hash abilities list(hash) attacks list(hash) weaknesses list(hash) resistances list(hash) retreatCost list(string) convertedRetreatCost integer set hash number string artist string rarity string flavorText string nationalPokedexNumbers list(integer) legalities hash regulationMark string images hash tcgplayer hash cardmarket hash
RELATED LINKS
https://celerium.github.io/PokemonTCG-PowerShellWrapper/site/Cards/Get-PokemonTCGCard.html
https://docs.pokemontcg.io/api-reference/cards/card-object#attributes