MTG Copilot Docs
Data model

Card prices

Current prices per card, refreshed on a cron rather than with the card data.

4 columns. Every value below is generated from the provenance registry.

FieldTypeSourceUpdatedWritten by
scryfall_oracle_idstringcalculateddailyscripts/ingest-mtgjson.ts (prices) → refresh_card_prices()
Oracle card key (FK → cards.scryfall_oracle_id).
cheapest_usdnumber | nullcalculateddailyscripts/ingest-mtgjson.ts (prices) → refresh_card_prices()
Cheapest current TCGplayer retail USD across the card's normal-finish printings, in dollars.
cheapest_usd_foilnumber | nullcalculateddailyscripts/ingest-mtgjson.ts (prices) → refresh_card_prices()
Cheapest current TCGplayer retail USD across the card's foil/etched printings, in dollars.
updated_atstringcalculateddailyscripts/ingest-mtgjson.ts (prices) → refresh_card_prices()
When the headline was last rebuilt.

TypeScript model

interface card_prices {
  scryfall_oracle_id: string
  cheapest_usd:       number | null
  cheapest_usd_foil:  number | null
  updated_at:         string
}

On this page