# Hearthstone

> Every Hearthstone endpoint of blizzard_api, on client.hearthstone.

Hearthstone game data.

6 endpoints on `client.hearthstone`. Response types are documented on JSR: [`HearthstoneApi`](https://jsr.io/@pinta365/blizzard-api/doc/~/HearthstoneApi).

## Game data

### Card backs

- `fetchCardback(idorslug: string): Cardback`\
  Returns the card back with an ID or slug that matches the one you specify.
- `searchCardbacks(searchParameters: SearchParameters): CardbackSearch`\
  Returns an up-to-date list of all card backs matching the search criteria.

### Cards

- `fetchCard(idorslug: string, gameMode?: string): Card`\
  Returns the card with an ID or slug that matches the one you specify.
- `searchCards(searchParameters: SearchParameters): CardSearch`\
  Returns an up-to-date list of all cards matching the search criteria.

### Decks

- `fetchDeck(options?: Options): Deck`\
  Returns the card with an ID or slug that matches the one you specify.

### Metadata

- `metadata(type: T): MetadataByType[T]`\
  Returns information about the categorization of cards. Metadata includes the card set, set group (for example, Standard or Year of the Dragon), rarity, class, card type, minion type, and keywords.
