v3.2.0
This release includes support for the Hearthstone Game Data API via the hs
namespace.
Search cards
blizzard.hs.cards({ set: 'rise-of-shadows' })
Valid search parameters include attack
, class
, collectible
, health
, keyword
, manaCost
, minionType
, order
, page
, pageSize
, rarity
, set
, sort
, textFilter
, and type
. See the Hearthstone Guide for more information.
Get a card by ID or slug
blizzard.hs.cards({ card: '52119-arch-villain-rafaam' })
Get a deck by code
blizzard.hs.deck({ code: 'AAECAQcG+wyd8AKS+AKggAOblAPanQMMS6IE/web8wLR9QKD+wKe+wKz/AL1gAOXlAOalAOSnwMA' })
Get all metadata
blizzard.hs.metadata()
Get metadata by type
blizzard.hs.metadata({ type: 'sets' })
Valid metadata values include sets
, setGroups
, types
, rarities
, classes
, minionTypes
, and keywords
.