cards.openstacks.mtg.card

openstacks.cards

Documentation

A Magic: The Gathering card (oracle data)

main record

A Magic: The Gathering card (oracle data)

Record Key any Any valid record key

Properties

cmc integer Optional

Converted mana cost / mana value

colorIdentity array of string Optional

Colors for Commander color identity rules

colors array of string Optional

Colors in the card's mana cost (W, U, B, R, G)

createdAt string datetime Optional

When this record was created

faces array of ref #cardFace Optional

Individual faces for multi-face cards

keywords array of string Optional

Keyword abilities, e.g. ['Flying', 'Haste']

layout string Required

Card layout type

Known values: normal, split, flip, transform, modal_dfc, meld, leveler, class, saga, adventure, mutate, prototype, battle, planar, scheme, vanguard, token, double_faced_token, emblem, augment, host, art_series, reversible_card
legalities ref #legalities Optional

Format legality status

loyalty string Optional

Starting loyalty (for planeswalkers)

manaCost string Optional

Mana cost in MTG notation, e.g. '{2}{U}{U}'

name string Required

Card name (front face name for multi-face cards)

oracleText string Optional

Rules text

power string Optional

Power (for creatures), can be '*' or other special values

scryfallOracleId string Required

Scryfall oracle_id - shared across all printings

toughness string Optional

Toughness (for creatures), can be '*' or other special values

typeLine string Optional

Full type line, e.g. 'Legendary Creature — Human Wizard'

View raw schema
{
  "key": "any",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "name",
      "scryfallOracleId",
      "layout"
    ],
    "properties": {
      "cmc": {
        "type": "integer",
        "description": "Converted mana cost / mana value"
      },
      "name": {
        "type": "string",
        "description": "Card name (front face name for multi-face cards)"
      },
      "faces": {
        "type": "array",
        "items": {
          "ref": "#cardFace",
          "type": "ref"
        },
        "description": "Individual faces for multi-face cards"
      },
      "power": {
        "type": "string",
        "description": "Power (for creatures), can be '*' or other special values"
      },
      "colors": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Colors in the card's mana cost (W, U, B, R, G)"
      },
      "layout": {
        "type": "string",
        "description": "Card layout type",
        "knownValues": [
          "normal",
          "split",
          "flip",
          "transform",
          "modal_dfc",
          "meld",
          "leveler",
          "class",
          "saga",
          "adventure",
          "mutate",
          "prototype",
          "battle",
          "planar",
          "scheme",
          "vanguard",
          "token",
          "double_faced_token",
          "emblem",
          "augment",
          "host",
          "art_series",
          "reversible_card"
        ]
      },
      "loyalty": {
        "type": "string",
        "description": "Starting loyalty (for planeswalkers)"
      },
      "keywords": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Keyword abilities, e.g. ['Flying', 'Haste']"
      },
      "manaCost": {
        "type": "string",
        "description": "Mana cost in MTG notation, e.g. '{2}{U}{U}'"
      },
      "typeLine": {
        "type": "string",
        "description": "Full type line, e.g. 'Legendary Creature — Human Wizard'"
      },
      "createdAt": {
        "type": "string",
        "format": "datetime",
        "description": "When this record was created"
      },
      "toughness": {
        "type": "string",
        "description": "Toughness (for creatures), can be '*' or other special values"
      },
      "legalities": {
        "ref": "#legalities",
        "type": "ref",
        "description": "Format legality status"
      },
      "oracleText": {
        "type": "string",
        "description": "Rules text"
      },
      "colorIdentity": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Colors for Commander color identity rules"
      },
      "scryfallOracleId": {
        "type": "string",
        "description": "Scryfall oracle_id - shared across all printings"
      }
    }
  },
  "description": "A Magic: The Gathering card (oracle data)"
}
cardFace object

One face of a multi-face card

Properties

colors array of string Optional

Colors for this face

loyalty string Optional

No description available.

manaCost string Optional

Mana cost for this face

name string Required

Face name

oracleText string Optional

Oracle text for this face

power string Optional

No description available.

toughness string Optional

No description available.

typeLine string Optional

Type line for this face

View raw schema
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Face name"
    },
    "power": {
      "type": "string"
    },
    "colors": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Colors for this face"
    },
    "loyalty": {
      "type": "string"
    },
    "manaCost": {
      "type": "string",
      "description": "Mana cost for this face"
    },
    "typeLine": {
      "type": "string",
      "description": "Type line for this face"
    },
    "toughness": {
      "type": "string"
    },
    "oracleText": {
      "type": "string",
      "description": "Oracle text for this face"
    }
  },
  "description": "One face of a multi-face card"
}
legalities object

Format legality information

Properties

alchemy string Optional

No description available.

Known values: legal, not_legal, banned, suspended
brawl string Optional

No description available.

Known values: legal, not_legal, banned, suspended
commander string Optional

No description available.

Known values: legal, not_legal, banned, suspended
duel string Optional

No description available.

Known values: legal, not_legal, banned, suspended
future string Optional

No description available.

Known values: legal, not_legal, banned, suspended
gladiator string Optional

No description available.

Known values: legal, not_legal, banned, suspended
historic string Optional

No description available.

Known values: legal, not_legal, banned, suspended
legacy string Optional

No description available.

Known values: legal, not_legal, banned, suspended
modern string Optional

No description available.

Known values: legal, not_legal, banned, suspended
oathbreaker string Optional

No description available.

Known values: legal, not_legal, banned, suspended
oldschool string Optional

No description available.

Known values: legal, not_legal, banned, suspended
pauper string Optional

No description available.

Known values: legal, not_legal, banned, suspended
paupercommander string Optional

No description available.

Known values: legal, not_legal, banned, suspended
penny string Optional

No description available.

Known values: legal, not_legal, banned, suspended
pioneer string Optional

No description available.

Known values: legal, not_legal, banned, suspended
predh string Optional

No description available.

Known values: legal, not_legal, banned, suspended
premodern string Optional

No description available.

Known values: legal, not_legal, banned, suspended
standard string Optional

No description available.

Known values: legal, not_legal, banned, suspended
standardbrawl string Optional

No description available.

Known values: legal, not_legal, banned, suspended
timeless string Optional

No description available.

Known values: legal, not_legal, banned, suspended
vintage string Optional

No description available.

Known values: legal, not_legal, banned, suspended
View raw schema
{
  "type": "object",
  "properties": {
    "duel": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "brawl": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "penny": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "predh": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "future": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "legacy": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "modern": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "pauper": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "alchemy": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "pioneer": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "vintage": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "historic": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "standard": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "timeless": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "commander": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "gladiator": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "oldschool": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "premodern": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "oathbreaker": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "standardbrawl": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    },
    "paupercommander": {
      "type": "string",
      "knownValues": [
        "legal",
        "not_legal",
        "banned",
        "suspended"
      ]
    }
  },
  "description": "Format legality information"
}

Lexicon Garden

@