Battle.net · JSON Structure

Hearthstone Game Data Deck Structure

A Hearthstone deck.

Type: object Properties: 6
GamesGamingBlizzardWorld Of WarcraftDiabloHearthstoneStarcraft

Deck is a JSON Structure definition published by Battle.net, describing 6 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

deckCode version format class cards cardCount

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/battle-net/refs/heads/main/json-structure/hearthstone-game-data-deck-structure.json",
  "name": "Deck",
  "description": "A Hearthstone deck.",
  "type": "object",
  "properties": {
    "deckCode": {
      "type": "string",
      "description": "The deck code string.",
      "example": "AAECAf0EAA8A"
    },
    "version": {
      "type": "int32",
      "description": "The deck version.",
      "example": 1
    },
    "format": {
      "type": "string",
      "description": "The deck format (standard, wild, classic).",
      "example": "standard"
    },
    "class": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string",
          "description": "The class slug.",
          "example": "mage"
        },
        "id": {
          "type": "int32",
          "description": "The class ID.",
          "example": 3
        },
        "name": {
          "type": "string",
          "description": "The class name.",
          "example": "Mage"
        }
      },
      "description": "The class associated with a deck."
    },
    "cards": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "int32",
            "description": "The card ID.",
            "example": 52119
          },
          "count": {
            "type": "int32",
            "description": "Number of copies of this card in the deck.",
            "example": 2
          },
          "slug": {
            "type": "string",
            "description": "The card slug.",
            "example": "52119-ragnaros-the-firelord"
          },
          "name": {
            "type": "string",
            "description": "The card name.",
            "example": "Ragnaros the Firelord"
          }
        },
        "description": "A card included in a deck."
      },
      "description": "The cards in the deck."
    },
    "cardCount": {
      "type": "int32",
      "description": "Total number of cards in the deck.",
      "example": 30
    }
  }
}