Get-APITCGHistoryPrice
SYNOPSIS
Price history of a product
SYNTAX
__AllParameterSets
Get-APITCGHistoryPrice [-ProductId] <long> [-From <datetime>] [-To <datetime>] [-Limit <int>] [-Raw]
ALIASES
This cmdlet has the following aliases,
- None
DESCRIPTION
The Get-APITCGHistoryPrice cmdlet invokes the GET method of the /api/history-prices/{productId} endpoint (Price history of a product)
Returns the daily price history of a product, newest first: one record per day, with that day’s TCGplayer prices and the printing they belong to. An unknown product returns an empty array.
GET /api/history-prices/9804?from=2026-10-01&limit=30
The price history is returned newest first, one record per day. -From & -To are dates, the time of the date is ignored & the dates are sent in the format yyyy-MM-dd. Products can be piped in from Get-APITCGProduct
EXAMPLES
EXAMPLE 1
Get-APITCGHistoryPrice -ProductId 9804
Returns the result of the /api/history-prices/{productId} endpoint
EXAMPLE 2
Get-APITCGHistoryPrice -ProductId 9804 -From (Get-Date).AddDays(-30)
Returns the price history of the last 30 days of the product
PARAMETERS
-From
Only records from this day on (ISO 8601, e.g. ‘2026-10-01’).
Only the date is used, the time is ignored. The date is sent in the format yyyy-MM-dd
Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Limit
Maximum number of records (default ‘100’).
Default value: 100
Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-ProductId
Numeric product ID.
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases:
- Id
- _id
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Raw
Returns the full API response (success, data, total, & fallback) instead of only the data
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: ''
-To
Only records up to this day (ISO 8601).
Only the date is used, the time is ignored. The date is sent in the format yyyy-MM-dd
Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
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.Int64
OUTPUTS
NOTES
Endpoint : GET /api/history-prices/{productId}