mightstone.services.scryfall.models.Card
- pydantic model mightstone.services.scryfall.models.Card
Show JSON schema
{ "title": "Card", "type": "object", "properties": { "arena_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Arena Id" }, "id": { "format": "uuid", "title": "Id", "type": "string" }, "lang": { "title": "Lang", "type": "string" }, "mtgo_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Mtgo Id" }, "mtgo_foil_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Mtgo Foil Id" }, "multiverse_ids": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Multiverse Ids" }, "tcgplayer_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Tcgplayer Id" }, "tcgplayer_etched_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Tcgplayer Etched Id" }, "cardmarket_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Cardmarket Id" }, "object": { "title": "Object", "type": "string" }, "oracle_id": { "format": "uuid", "title": "Oracle Id", "type": "string" }, "prints_search_uri": { "title": "Prints Search Uri", "type": "string" }, "rulings_uri": { "format": "uri", "minLength": 1, "title": "Rulings Uri", "type": "string" }, "scryfall_uri": { "format": "uri", "minLength": 1, "title": "Scryfall Uri", "type": "string" }, "uri": { "format": "uri", "minLength": 1, "title": "Uri", "type": "string" }, "all_parts": { "anyOf": [ { "items": { "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "All Parts" }, "card_faces": { "anyOf": [ { "items": { "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Card Faces" }, "cmc": { "anyOf": [ { "type": "number" }, { "type": "string" } ], "title": "Cmc" }, "color_identity": { "items": { "examples": [ "U", "W" ], "pattern": [ "^[WUBRG]$" ], "title": "Color", "type": "string" }, "title": "Color Identity", "type": "array" }, "color_indicator": { "anyOf": [ { "items": { "examples": [ "U", "W" ], "pattern": [ "^[WUBRG]$" ], "title": "Color", "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Color Indicator" }, "colors": { "anyOf": [ { "items": { "examples": [ "U", "W" ], "pattern": [ "^[WUBRG]$" ], "title": "Color", "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Colors" }, "edhrec_rank": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Edhrec Rank" }, "hand_modifier": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Hand Modifier" }, "keywords": { "items": { "type": "string" }, "title": "Keywords", "type": "array" }, "layout": { "title": "Layout", "type": "string" }, "legalities": { "title": "Legalities", "type": "object" }, "life_modifier": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Life Modifier" }, "loyalty": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Loyalty" }, "mana_cost": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Mana Cost" }, "name": { "title": "Name", "type": "string" }, "oracle_text": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Oracle Text" }, "oversized": { "title": "Oversized", "type": "boolean" }, "penny_rank": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Penny Rank" }, "power": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Power" }, "produced_mana": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Produced Mana" }, "reserved": { "title": "Reserved", "type": "boolean" }, "toughness": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Toughness" }, "type_line": { "title": "Type Line", "type": "string" }, "artist": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Artist" }, "attraction_lights": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Attraction Lights" }, "booster": { "title": "Booster", "type": "boolean" }, "border_color": { "title": "Border Color", "type": "string" }, "card_back_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "default": null, "title": "Card Back Id" }, "collector_number": { "title": "Collector Number", "type": "string" }, "content_warning": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Content Warning" }, "digital": { "title": "Digital", "type": "boolean" }, "finishes": { "items": { "type": "string" }, "title": "Finishes", "type": "array" }, "flavor_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Flavor Name" }, "flavor_text": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Flavor Text" }, "frame_effects": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Frame Effects" }, "frame": { "title": "Frame", "type": "string" }, "full_art": { "title": "Full Art", "type": "boolean" }, "games": { "items": { "type": "string" }, "title": "Games", "type": "array" }, "highres_image": { "title": "Highres Image", "type": "boolean" }, "illustration_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "default": null, "title": "Illustration Id" }, "image_status": { "title": "Image Status", "type": "string" }, "image_uris": { "anyOf": [ { "$ref": "#/$defs/CardImagery" }, { "type": "null" } ], "default": null }, "prices": { "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "null" } ] }, "default": {}, "title": "Prices", "type": "object" }, "printed_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Printed Name" }, "printed_text": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Printed Text" }, "printed_type_line": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Printed Type Line" }, "promo": { "title": "Promo", "type": "boolean" }, "promo_types": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Promo Types" }, "purchase_uris": { "anyOf": [ { "additionalProperties": { "type": "string" }, "type": "object" }, { "type": "null" } ], "default": null, "title": "Purchase Uris" }, "rarity": { "title": "Rarity", "type": "string" }, "related_uris": { "additionalProperties": { "format": "uri", "minLength": 1, "type": "string" }, "title": "Related Uris", "type": "object" }, "released_at": { "format": "date", "title": "Released At", "type": "string" }, "reprint": { "title": "Reprint", "type": "boolean" }, "scryfall_set_uri": { "format": "uri", "minLength": 1, "title": "Scryfall Set Uri", "type": "string" }, "set_name": { "title": "Set Name", "type": "string" }, "set_search_uri": { "format": "uri", "minLength": 1, "title": "Set Search Uri", "type": "string" }, "set_type": { "title": "Set Type", "type": "string" }, "set_uri": { "format": "uri", "minLength": 1, "title": "Set Uri", "type": "string" }, "set": { "title": "Set", "type": "string" }, "set_id": { "format": "uuid", "title": "Set Id", "type": "string" }, "story_spotlight": { "title": "Story Spotlight", "type": "boolean" }, "textless": { "title": "Textless", "type": "boolean" }, "variation": { "title": "Variation", "type": "boolean" }, "variation_of": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "default": null, "title": "Variation Of" }, "security_stamp": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Security Stamp" }, "watermark": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Watermark" }, "preview": { "anyOf": [ { "$ref": "#/$defs/Preview" }, { "type": "null" } ], "default": null } }, "$defs": { "CardImagery": { "properties": { "png": { "anyOf": [ { "format": "uri", "minLength": 1, "type": "string" }, { "type": "null" } ], "default": null, "title": "Png" }, "border_crop": { "anyOf": [ { "format": "uri", "minLength": 1, "type": "string" }, { "type": "null" } ], "default": null, "title": "Border Crop" }, "art_crop": { "anyOf": [ { "format": "uri", "minLength": 1, "type": "string" }, { "type": "null" } ], "default": null, "title": "Art Crop" }, "large": { "anyOf": [ { "format": "uri", "minLength": 1, "type": "string" }, { "type": "null" } ], "default": null, "title": "Large" }, "normal": { "anyOf": [ { "format": "uri", "minLength": 1, "type": "string" }, { "type": "null" } ], "default": null, "title": "Normal" }, "small": { "anyOf": [ { "format": "uri", "minLength": 1, "type": "string" }, { "type": "null" } ], "default": null, "title": "Small" } }, "title": "CardImagery", "type": "object" }, "Preview": { "properties": { "previewed_at": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "default": null, "title": "Previewed At" }, "source_uri": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Source Uri" }, "source": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Source" } }, "title": "Preview", "type": "object" } }, "required": [ "lang", "object", "oracle_id", "prints_search_uri", "rulings_uri", "scryfall_uri", "uri", "cmc", "color_identity", "keywords", "layout", "legalities", "name", "oversized", "reserved", "type_line", "booster", "border_color", "collector_number", "digital", "finishes", "frame", "full_art", "games", "highres_image", "image_status", "promo", "rarity", "related_uris", "released_at", "reprint", "scryfall_set_uri", "set_name", "set_search_uri", "set_type", "set_uri", "set", "set_id", "story_spotlight", "textless", "variation" ] }
- Fields:
color_identity (List[mightstone.services.scryfall.models.Color])color_indicator (List[mightstone.services.scryfall.models.Color] | None)colors (List[mightstone.services.scryfall.models.Color] | None)image_uris (mightstone.services.scryfall.models.CardImagery | None)preview (mightstone.services.scryfall.models.Preview | None)
- field all_parts: List[dict] | None = None
If this card is closely related to other cards, this property will be an array with Related Card Objects.
- field arena_id: int | None = None
This card’s Arena ID, if any. A large percentage of cards are not available on Arena and do not have this ID.
- field artist: str | None = None
The name of the illustrator of this card. Newly spoiled cards may not have this field yet.
- field attraction_lights: List[str] | None = None
The lit Unfinity attractions lights on this card, if any.
- field booster: bool [Required]
Whether this card is found in boosters.
- field border_color: str [Required]
This card’s border color: black, white, borderless, silver, or gold.
- field card_back_id: UUID | None = None
The Scryfall ID for the card back design present on this card.
- field card_faces: List[dict] | None = None
An array of Card Face objects, if this card is multifaced.
- field cardmarket_id: int | None = None
This card’s ID on Cardmarket’s API, also known as the idProduct.
- field cmc: Decimal [Required]
The card’s converted mana cost. Note that some funny cards have fractional mana costs.
- Constraints:
func = <function <lambda> at 0x7fa3e4e97be0>
- field collector_number: str [Required]
This card’s collector number. Note that collector numbers can contain non-numeric characters, such as letters or ★.
- field color_identity: List[Color] [Required]
This card’s color identity.
- field color_indicator: List[Color] | None = None
The colors in this card’s color indicator, if any. A null value for this field indicates the card does not have one.
- field colors: List[Color] | None = None
This card’s colors, if the overall card has colors defined by the rules. Otherwise the colors will be on the card_faces objects, see below.
- field content_warning: bool | None = None
True if you should consider avoiding use of this print downstream.
- field digital: bool [Required]
True if this card was only released in a video game.
- field edhrec_rank: int | None = None
This card’s overall rank/popularity on EDHREC. Not all cards are ranked.
- field finishes: List[str] [Required]
An array of computer-readable flags that indicate if this card can come in foil, nonfoil, or etched finishes.
- field flavor_name: str | None = None
The just-for-fun name printed on the card (such as for Godzilla series cards).
- field flavor_text: str | None = None
The flavor text, if any.
- field frame: str [Required]
This card’s frame layout.
- field frame_effects: List[str] | None = None
This card’s frame effects, if any.
- field full_art: bool [Required]
True if this card’s artwork is larger than normal.
- field games: List[str] [Required]
A list of games that this card print is available in, paper, arena, and/or mtgo.
- field hand_modifier: str | None = None
This card’s hand modifier, if it is Vanguard card. This value will contain a delta, such as -1.
- field highres_image: bool [Required]
True if this card’s imagery is high resolution.
- field id: UUID [Optional]
A unique ID for this card in Scryfall’s database.
- field illustration_id: UUID | None = None
A unique identifier for the card artwork that remains consistent across reprints. Newly spoiled cards may not have this field yet.
- field image_status: str [Required]
A computer-readable indicator for the state of this card’s image, one of : missing, placeholder, lowres, or highres_scan.
- field image_uris: CardImagery | None = None
An object listing available imagery for this card. See the Card Imagery article for more information.
- field keywords: List[str] [Required]
An array of keywords that this card uses, such as ‘Flying’ and ‘Cumulative upkeep’.
- field lang: str [Required]
A language code for this printing.
- field layout: str [Required]
A code for this card’s layout.
- field legalities: dict [Required]
An object describing the legality of this card across play formats. Possible legalities are legal, not_legal, restricted, and banned.
- field life_modifier: str | None = None
This card’s life modifier, if it is Vanguard card. This value will contain a delta, such as +2.
- field loyalty: str | None = None
This loyalty if any. Note that some cards have loyalties that are not numeric, such as X.
- field mana_cost: str | None = None
The mana cost for this card. This value will be any empty string “” if the cost is absent. Remember that per the game rules, a missing mana cost and a mana cost of {0} are different values. Multi-faced cards will report this value in card faces.
- field mtgo_foil_id: int | None = None
This card’s foil Magic Online ID (also known as the Catalog ID), if any. A large percentage of cards are not available on Magic Online and do not have this ID.
- field mtgo_id: int | None = None
This card’s Magic Online ID (also known as the Catalog ID), if any. A large percentage of cards are not available on Magic Online and do not have this ID.
- field multiverse_ids: List[int] | None = None
This card’s multiverse IDs on Gatherer, if any, as an array of integers. Note that Scryfall includes many promo cards, tokens, and other esoteric objects that do not have these identifiers.
- field name: str [Required]
The name of this card. If this card has multiple faces, this field will contain both names separated by ␣//␣.
- field object: str [Required]
A content type for this object, always card.
- field oracle_id: UUID [Required]
A unique ID for this card’s oracle identity. This value is consistent across reprinted card editions, and unique among different cards with the same name (tokens, Unstable variants, etc).
- field oracle_text: str | None = None
The Oracle text for this card, if any.
- field oversized: bool [Required]
True if this card is oversized.
- field penny_rank: int | None = None
This card’s rank/popularity on Penny Dreadful. Not all cards are ranked.
- field power: str | None = None
This card’s power, if any. Note that some cards have powers that are not numeric, such as *.
- field prices: Dict[str, str | None] = {}
An object containing daily price information for this card, including: usd, usd_foil, usd_etched, eur, and tix prices, as strings.
- field printed_name: str | None = None
The localized name printed on this card, if any.
- field printed_text: str | None = None
The localized text printed on this card, if any.
- field printed_type_line: str | None = None
The localized type line printed on this card, if any.
- field prints_search_uri: str [Required]
A link to where you can begin paginating all re/prints for this card on Scryfall’s API.
- field produced_mana: List[str] | None = None
Colors of mana that this card could produce.
- field promo: bool [Required]
True if this card is a promotional print.
- field promo_types: List[str] | None = None
An array of strings describing what categories of promo cards this card falls into.
- field purchase_uris: Dict[str, str] | None = None
An object providing URIs to this card’s listing on major marketplaces.
- field rarity: str [Required]
This card’s rarity. One of common, uncommon, rare, special, mythic, or bonus.
An object providing URIs to this card’s listing on other Magic: The Gathering online resources.
- field released_at: date [Required]
The date this card was first released.
- field reprint: bool [Required]
True if this card is a reprint.
- field reserved: bool [Required]
True if this card is on the Reserved List.
- field rulings_uri: Url [Required]
A link to this card’s rulings list on Scryfall’s API.
- field scryfall_set_uri: Url [Required]
A link to this card’s set on Scryfall’s website.
- field scryfall_uri: Url [Required]
A link to this card’s permapage on Scryfall’s website.
- field security_stamp: str | None = None
The security stamp on this card, if any. One of oval, triangle, acorn, circle, arena, or heart.
- field set_code: str [Required] (alias 'set')
This card’s set code.
- field set_id: UUID [Required]
This card’s Set object UUID.
- field set_name: str [Required]
This card’s full set name.
- field set_search_uri: Url [Required]
A link to where you can begin paginating this card’s set on the Scryfall API.
- field set_type: str [Required]
The type of set this printing is in.
- field set_uri: Url [Required]
A link to this card’s set object on Scryfall’s API.
- field story_spotlight: bool [Required]
True if this card is a Story Spotlight.
- field tcgplayer_etched_id: int | None = None
This card’s ID on TCGplayer’s API, for its etched version if that version is a separate product.
- field tcgplayer_id: int | None = None
This card’s ID on TCGplayer’s API, also known as the productId.
- field textless: bool [Required]
True if the card is printed without text.
- field toughness: str | None = None
This card’s toughness, if any. Note that some cards have toughnesses that are not numeric, such as *.
- field type_line: str [Required]
The type line of this card.
- field uri: Url [Required]
A link to this card object on Scryfall’s API.
- field variation: bool [Required]
Whether this card is a variation of another printing.
- field variation_of: UUID | None = None
The printing ID of the printing this card is a variation of.
- field watermark: str | None = None
This card’s watermark, if any.