Hearthstone API logo
GamingMAINTAINED5 tokens / call

Hearthstone API

Every Hearthstone card from Blizzard's data with class, set, cost, rarity, mechanics and text, twice-daily refresh

Hearthstone card database from Blizzard's own card data, refreshed twice daily: search cards by name, class, set, type, rarity, cost and mechanics, or fetch a card by slug with its full text and stats.

Every call needs an X-Api-Key header. A free key includes 500 tokens a month, no card required. 5 tokens per call, so the free plan covers about 100 calls a month.

No credit card requiredAccess to 125+ APIsCancel anytime
response.json
{
  "collectible": 1,
  "slug": "a-light-in-the-darkness",
  "artistName": "Zoltan Boros",
  "manaCost": 2,
  "name": "A Light in the Darkness",
  "text": "Discover a minion. Give it +1/+1.",
  "rarity": {
    "slug": "common",
    "craftingCost": [
      40,
      400
    ],
    "dustValue": [
      5,
      50
    ],
    "name": "Common"
  },
  "class": {
    "slug": "paladin",
    "name": "Paladin"
  },
  "type": {
    "slug": "spell",
    "name": "Spell"
  },
  "spellSchool": {
    "slug": "holy",
    "name": "Holy"
  },
  "cardSet": {
    "name": "Whispers of the Old Gods",
    "slug": "whispers-of-the-old-gods",
    "type": "expansion",
    "collectibleCount": 134
  },
  "keywords": [
    {
      "slug": "discover",
      "name": "Discover",
      "text": "Choose one of three cards to add to your hand."
    }
  ],
  "duels": {
    "relevant": true,
    "constructed": true
  },
  "hasImage": true,
  "hasCropImage": true
}

Also available on

Production Ready
Battle-tested infrastructure with a 99.9% uptime SLA. Rate limits are generous, responses are consistent.
Simple Integration
Standard REST + JSON. Works with any HTTP client. Copy-ready code snippets in 4 languages.
One Key, 125+ APIs
Your DataAndAPIs subscription unlocks every API on the platform — anime, finance, sports, and more.

Use cases for Hearthstone API

  • Build a deck builder with filters by class, mana cost, rarity and set.

  • Show card details and art on a strategy site, wiki or stream overlay.

  • Track new expansions and balance changes as cards are added or updated.

  • Power card-search autocomplete in a companion app.

Hearthstone API endpoints

Every endpoint with its parameters and a real example response.

GETGet Card By Id

https://hearthstone.dataandapis.com/v1/cards/{slug}

Path parameters

ParameterExample
sluga-light-in-the-darknessRequired

Example request

curl "https://hearthstone.dataandapis.com/v1/cards/a-light-in-the-darkness" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "collectible": 1,
  "slug": "a-light-in-the-darkness",
  "artistName": "Zoltan Boros",
  "manaCost": 2,
  "name": "A Light in the Darkness",
  "text": "<b>Discover</b> a minion. Give it +1/+1.",
  "flavorText": "Wait, how can you have a light in the dark? If you turn on a light while it’s dark, doesn’t that mean it’s no longer dark?",
  "duels": {
    "relevant": true,
    "constructed": true
  },
  "hasImage": true,
  "hasImageGold": false,
  "hasCropImage": true,
  "keywords": [
    {
      "slug": "discover",
      "name": "Discover",
      "refText": "Choose one of three cards to add to your hand.",
      "text": "Choose one of three cards to add to your hand.",
      "gameModes": []
    }
  ],
  "rarity": {
    "slug": "common",
    "craftingCost": [
      40,
…
Show full response
{
  "collectible": 1,
  "slug": "a-light-in-the-darkness",
  "artistName": "Zoltan Boros",
  "manaCost": 2,
  "name": "A Light in the Darkness",
  "text": "<b>Discover</b> a minion. Give it +1/+1.",
  "flavorText": "Wait, how can you have a light in the dark? If you turn on a light while it’s dark, doesn’t that mean it’s no longer dark?",
  "duels": {
    "relevant": true,
    "constructed": true
  },
  "hasImage": true,
  "hasImageGold": false,
  "hasCropImage": true,
  "keywords": [
    {
      "slug": "discover",
      "name": "Discover",
      "refText": "Choose one of three cards to add to your hand.",
      "text": "Choose one of three cards to add to your hand.",
      "gameModes": []
    }
  ],
  "rarity": {
    "slug": "common",
    "craftingCost": [
      40,
      400
    ],
    "dustValue": [
      5,
      50
    ],
    "name": "Common"
  },
  "class": {
    "slug": "paladin",
    "name": "Paladin"
  },
  "type": {
    "slug": "spell",
    "name": "Spell",
    "gameModes": []
  },
  "cardSet": {
    "name": "Whispers of the Old Gods",
    "slug": "whispers-of-the-old-gods",
    "type": "expansion",
    "collectibleCount": 134,
    "collectibleRevealedCount": 134,
    "nonCollectibleCount": 36,
    "nonCollectibleRevealedCount": 34
  },
  "spellSchool": {
    "slug": "holy",
    "name": "Holy"
  }
}

GETGet Cards

https://hearthstone.dataandapis.com/v1/cards

Query parameters

ParameterExample
page1Optional
pageSize1Optional

Example request

curl "https://hearthstone.dataandapis.com/v1/cards?page=1&pageSize=1" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "cards": [
    {
      "collectible": 1,
      "slug": "a-light-in-the-darkness",
      "artistName": "Zoltan Boros",
      "manaCost": 2,
      "name": "A Light in the Darkness",
      "text": "<b>Discover</b> a minion. Give it +1/+1.",
      "flavorText": "Wait, how can you have a light in the dark? If you turn on a light while it’s dark, doesn’t that mean it’s no longer dark?",
      "duels": {
        "relevant": true,
        "constructed": true
      },
      "hasImage": true,
      "hasImageGold": false,
      "hasCropImage": true,
      "keywords": [
        {
          "slug": "discover",
          "name": "Discover",
          "refText": "Choose one of three cards to add to your hand.",
          "text": "Choose one of three cards to add to your hand.",
          "gameModes": [
            {
              "slug": "constructed",
              "name": "Standard & Wild Formats"
            },
…
Show full response
{
  "cards": [
    {
      "collectible": 1,
      "slug": "a-light-in-the-darkness",
      "artistName": "Zoltan Boros",
      "manaCost": 2,
      "name": "A Light in the Darkness",
      "text": "<b>Discover</b> a minion. Give it +1/+1.",
      "flavorText": "Wait, how can you have a light in the dark? If you turn on a light while it’s dark, doesn’t that mean it’s no longer dark?",
      "duels": {
        "relevant": true,
        "constructed": true
      },
      "hasImage": true,
      "hasImageGold": false,
      "hasCropImage": true,
      "keywords": [
        {
          "slug": "discover",
          "name": "Discover",
          "refText": "Choose one of three cards to add to your hand.",
          "text": "Choose one of three cards to add to your hand.",
          "gameModes": [
            {
              "slug": "constructed",
              "name": "Standard & Wild Formats"
            },
            {
              "slug": "battlegrounds",
              "name": "Battlegrounds"
            },
            {
              "slug": "duels",
              "name": "Current Duels Cards"
            },
            {
              "slug": "standard",
              "name": "Standard"
            }
          ]
        }
      ],
      "rarity": {
        "slug": "common",
        "craftingCost": [
          40,
          400
        ],
        "dustValue": [
          5,
          50
        ],
        "name": "Common"
      },
      "class": {
        "slug": "paladin",
        "name": "Paladin"
      },
      "type": {
        "slug": "spell",
        "name": "Spell",
        "gameModes": [
          {
            "slug": "constructed",
            "name": "Standard & Wild Formats"
          },
          {
            "slug": "battlegrounds",
            "name": "Battlegrounds"
          },
          {
            "slug": "duels",
            "name": "Current Duels Cards"
          },
          {
            "slug": "standard",
            "name": "Standard"
          }
        ]
      },
      "cardSet": {
        "name": "Whispers of the Old Gods",
        "slug": "whispers-of-the-old-gods",
        "type": "expansion",
        "collectibleCount": 134,
        "collectibleRevealedCount": 134,
        "nonCollectibleCount": 36,
        "nonCollectibleRevealedCount": 34
      },
      "spellSchool": {
        "slug": "holy",
        "name": "Holy"
      }
    },
    {
      "collectible": 1,
      "slug": "a-new-challenger",
      "artistName": "James Ryman",
      "manaCost": 7,
      "name": "A New Challenger...",
      "text": "<b>Discover</b> a 6-Cost minion. Summon it with <b>Taunt</b> and <b>Divine Shield</b>.",
      "flavorText": "… Arrives? Approaches? TELL US ALREADY!",
      "hasImage": true,
      "hasImageGold": true,
      "hasCropImage": true,
      "keywords": [
        {
          "slug": "taunt",
          "name": "Taunt",
          "refText": "Enemies must attack minions that have Taunt.",
          "text": "Enemies must attack this minion.",
          "gameModes": [
            {
              "slug": "constructed",
              "name": "Standard & Wild Formats"
            },
            {
              "slug": "battlegrounds",
              "name": "Battlegrounds"
            },
            {
              "slug": "duels",
              "name": "Current Duels Cards"
            },
            {
              "slug": "standard",
              "name": "Standard"
            },
            {
              "slug": "mercenaries",
              "name": "Mercenaries"
            }
          ]
        },
        {
          "slug": "divine-shield",
          "name": "Divine Shield",
          "refText": "The first time a Shielded minion takes damage, ignore it.",
          "text": "The first time this minion takes damage, ignore it.",
          "gameModes": [
            {
              "slug": "constructed",
              "name": "Standard & Wild Formats"
            },
            {
              "slug": "battlegrounds",
              "name": "Battlegrounds"
            },
            {
              "slug": "duels",
              "name": "Current Duels Cards"
            },
            {
              "slug": "standard",
              "name": "Standard"
            }
          ]
        },
        {
          "slug": "discover",
          "name": "Discover",
          "refText": "Choose one of three cards to add to your hand.",
          "text": "Choose one of three cards to add to your hand.",
          "gameModes": []
        }
      ],
      "rarity": {
        "slug": "epic",
        "craftingCost": [
          400,
          1600
        ],
        "dustValue": [
          100,
          400
        ],
        "name": "Epic"
      },
      "class": {
        "slug": "paladin",
        "name": "Paladin"
      },
      "type": {
        "slug": "spell",
        "name": "Spell",
        "gameModes": []
      },
      "cardSet": {
        "name": "Rastakhan’s Rumble",
        "slug": "rastakhans-rumble",
        "type": "expansion",
        "collectibleCount": 135,
        "collectibleRevealedCount": 135,
        "nonCollectibleCount": 31,
        "nonCollectibleRevealedCount": 29
      },
      "spellSchool": null
    },
    {
      "collectible": 1,
      "slug": "aberrant-berserker",
      "artistName": "Jim Nelson",
      "health": 5,
      "attack": 3,
      "manaCost": 4,
      "name": "Aberrant Berserker",
      "text": "Has +2 Attack while damaged.",
      "flavorText": "I berserk, therefore I am.",
      "duels": {
        "relevant": true,
        "constructed": true
      },
      "hasImage": true,
      "hasImageGold": false,
      "hasCropImage": true,
      "keywords": [],
      "rarity": {
        "slug": "common",
        "craftingCost": [
          40,
          400
        ],
        "dustValue": [
          5,
          50
        ],
        "name": "Common"
      },
      "class": {
        "slug": "neutral",
        "name": "Neutral"
      },
      "type": {
        "slug": "minion",
        "name": "Minion",
        "gameModes": [
          {
            "slug": "constructed",
            "name": "Standard & Wild Formats"
          },
          {
            "slug": "battlegrounds",
            "name": "Battlegrounds"
          },
          {
            "slug": "duels",
            "name": "Current Duels Cards"
          },
          {
            "slug": "standard",
            "name": "Standard"
          },
          {
            "slug": "mercenaries",
            "name": "Mercenaries"
          }
        ]
      },
      "cardSet": {
        "name": "Whispers of the Old Gods",
        "slug": "whispers-of-the-old-gods",
        "type": "expansion",
        "collectibleCount": 134,
        "collectibleRevealedCount": 134,
        "nonCollectibleCount": 36,
        "nonCollectibleRevealedCount": 34
      },
      "spellSchool": null
    },
    {
      "collectible": 1,
      "slug": "abominable-bowman",
      "artistName": "L. Lullabi & K. Turovec",
      "health": 7,
      "attack": 6,
      "manaCost": 7,
      "name": "Abominable Bowman",
      "text": "<b>Deathrattle:</b> Summon a random friendly Beast that died this game.",
      "flavorText": "Frosty the Bowman... was an angry hateful soul... with a fresh hewn bow and a missing nose...",
      "hasImage": true,
      "hasImageGold": false,
      "hasCropImage": true,
      "keywords": [
        {
          "slug": "deathrattle",
          "name": "Deathrattle",
          "refText": "Does something when it dies.",
          "text": "Does something when it dies.",
          "gameModes": [
            {
              "slug": "constructed",
              "name": "Standard & Wild Formats"
            },
            {
              "slug": "battlegrounds",
              "name": "Battlegrounds"
            },
            {
              "slug": "duels",
              "name": "Current Duels Cards"
            },
            {
              "slug": "standard",
              "name": "Standard"
            },
            {
              "slug": "mercenaries",
              "name": "Mercenaries"
            }
          ]
        }
      ],
      "rarity": {
        "slug": "epic",
        "craftingCost": [
          400,
          1600
        ],
        "dustValue": [
          100,
          400
        ],
        "name": "Epic"
      },
      "class": {
        "slug": "hunter",
        "name": "Hunter"
      },
      "type": {
        "slug": "minion",
        "name": "Minion",
        "gameModes": []
      },
      "cardSet": {
        "name": "Knights of the Frozen Throne",
        "slug": "knights-of-the-frozen-throne",
        "type": "expansion",
        "collectibleCount": 135,
        "collectibleRevealedCount": 135,
        "nonCollectibleCount": 113,
        "nonCollectibleRevealedCount": 51
      },
      "spellSchool": null
    },
    {
      "collectible": 1,
      "slug": "abominable-lieutenant",
      "artistName": "Dave Allsop",
      "health": 5,
      "attack": 3,
      "manaCost": 8,
      "name": "Abominable Lieutenant",
      "text": "At the end of your turn, eat a random enemy minion and gain its stats.",
      "flavorText": "If you can't join 'em, eat 'em.",
      "hasImage": true,
      "hasImageGold": false,
      "hasCropImage": true,
      "keywords": [],
      "rarity": {
        "slug": "epic",
        "craftingCost": [
          400,
          1600
        ],
        "dustValue": [
          100,
          400
        ],
        "name": "Epic"
      },
      "class": {
        "slug": "neutral",
        "name": "Neutral"
      },
      "type": {
        "slug": "minion",
        "name": "Minion",
        "gameModes": []
      },
      "cardSet": {
        "name": "Fractured in Alterac Valley",
        "slug": "fractured-in-alterac-valley",
        "type": "expansion",
        "collectibleCount": 170,
        "collectibleRevealedCount": 170,
        "nonCollectibleCount": 373,
        "nonCollectibleRevealedCount": 70
      },
      "spellSchool": null
    }
  ],
  "cardCount": 4305,
  "pageCount": 861,
  "page": "1"
}

Where the data comes from

Source
Blizzard's public Hearthstone card data, loaded into the API's database.
Freshness
Refreshed twice daily.

One install. Every endpoint.

No proprietary SDKs needed. Any HTTP client works. Pick your language and paste.

3languages
2endpoints
RESTarchitecture
1key for all APIs
  • Fully typed responses — auto-completion in your IDE
  • Tracks the API in lockstep — new endpoints land same day
  • One key works across 125+ APIs on the platform
import axios from 'axios';

const { data } = await axios.get(
  'https://hearthstone.dataandapis.com/v1/cards/{slug}',
  { headers: { 'X-Api-Key': process.env.API_KEY } }
);

Hearthstone API · X-Api-Key

Explore the endpoints

Browse request parameters and inspect live example responses.

Available Endpoints

Request Parameters

API URL

Headers

X-Api-Key

Path Parameters

slug
import axios from 'axios';

const url = 'https://hearthstone.dataandapis.com/v1/cards/{slug}';
const { data } = await axios.get(url, {
  headers: { 'X-Api-Key': 'YOUR_API_KEY' }
});

One subscription. Every API.

Tokens unlock this API and 125+ others on DataAndAPIs. Switch APIs any time — we promote.

FREE

$0/mo

500 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Community support
Start free
Most Popular

STARTER

$6.99/mo

25,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Email support
Subscribe

PRO

$24.99/mo

100,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Priority email support
Subscribe

ULTRA

$99.99/mo

1,000,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Priority support
Subscribe

Need higher volume, dedicated infra, or a custom contract? Talk to sales →

Questions about Hearthstone API

Ship Hearthstone API this afternoon.

500 free tokens. No card. Plus 125+ other APIs on the same key.