Models
pypricecharting.models
PriceChartingModel
Bases: BaseModel
Base model that maps snake_case fields to the API's kebab-case keys.
ProductSummary
Bases: PriceChartingModel
A product as listed in /api/products search results.
https://www.pricecharting.com/api-documentation#api-products
id = None
class-attribute
instance-attribute
PriceCharting product ID.
Offer
Bases: PriceChartingModel
An offer as listed in /api/offers results.
https://www.pricecharting.com/api-documentation#offers
offer_id = None
class-attribute
instance-attribute
Unique offer ID, also shown in the offer URL.
offer_url = None
class-attribute
instance-attribute
Relative URL of the offer page. Prepend route.BASE_URL for a full link.
id = None
class-attribute
instance-attribute
PriceCharting product ID, not the offer ID.
condition_string = None
class-attribute
instance-attribute
Condition shown to buyers, such as "Normal Wear".
include_string = None
class-attribute
instance-attribute
What comes with the item, such as game only or game and box.
price = None
class-attribute
instance-attribute
Current price in pennies, or the sale price if sold. Includes any shipping premium.
sale_time = None
class-attribute
instance-attribute
Date the offer sold. 0001-01-01 if it hasn't happened.
shipped_time = None
class-attribute
instance-attribute
Date the seller told PriceCharting the offer shipped. 0001-01-01 if it hasn't happened.
ended_time = None
class-attribute
instance-attribute
Date the offer ended, by sale or by the seller. 0001-01-01 if it hasn't happened.
cert_id = None
class-attribute
instance-attribute
Grading company certificate number. Graded offers only.
grade_co_id = None
class-attribute
instance-attribute
ID of the grading company. Graded offers only.
Buyer
to_kebab(name)
Convert a snake_case field name to the API's kebab-case key.