Documentation · API v1

API reference

Price history

GET/v1/products/{id}/history

Returns the average, lowest and highest sold price for each day, week or month in a date range, oldest first. Periods with no sales are left out. By default it covers ungraded copies only.

Path parameters

idstring · required
The product id: the set id and the product slug joined by a dot, for example phantasmal-flames.mega-charizard-x-ex-125-094-holo.

Query parameters

intervalday | week | month · optional
Length of each period. Defaults to day.
fromdate · optional
First day, YYYY-MM-DD. Defaults to 90 days, 52 weeks or 2 years before to, by interval.
todate · optional
Last day, YYYY-MM-DD. Defaults to today.
gradedtrue | false | any · optional
Only graded copies (true), only ungraded copies (false), or both (any). Defaults to false.
currencystring · optional
GBP, the default and currently the only currency.

The range can be at most 366 days by day, 5 years by week and 20 years by month.

Response fields

productobject
The product's id and name.
intervalstring
The interval used.
copiesraw | graded | any
Which copies the figures cover.
from, todate
The range covered.
currencystring
Currency of every price, GBP.
as_oftimestamp | null
Date of the latest sale included.
data[].perioddate
First day of the period, YYYY-MM-DD.
data[].avgnumber
Average sold price in the period.
data[].lownumber
Lowest sold price in the period.
data[].highnumber
Highest sold price in the period.
data[].countinteger
Number of sales in the period.