I'm playing with APIs again. This time I'm parsing and displaying Hearthstone decks from the deck codes.

## Hearthstone deck from a deck ID

This is the Thief Rogue deck I'm currently running. Lots of angry messages from cheesy RNG wins. I love it. All I'm providing here is the deck code, the component then grabs the deck and card data from the Blizzard API, and tries to find a deck name from the HSReplay API.

# Thief Rogue

- Class: Rogue
- 30 cards
- Cost: 15,000 dust

★

Shadow of Demise

Mana cost: 0

2x

Shadowstep

Mana cost: 0

2x

Preparation

Mana cost: 0

2x

Blackwater Cutlass

Mana cost: 1

★

Maestra of the Masquerade

Mana cost: 2

★

Potionmaster Putricide

Mana cost: 2

★

Astalor Bloodsworn

Mana cost: 2

2x

Reconnaissance

Mana cost: 2

2x

Serrated Bone Spike

Mana cost: 2

2x

Sketchy Stranger

Mana cost: 2

2x

Jackpot!

Mana cost: 2

2x

Potion Belt

Mana cost: 2

2x

Swiftscale Trickster

Mana cost: 4

★

Queen Azshara

Mana cost: 5

2x

Wildpaw Gnoll

Mana cost: 5

2x

Contraband Stash

Mana cost: 5

★

Crabatoa

Mana cost: 6

★

Tess Greymane

Mana cost: 7

★

Shadowcrafter Scabbs

Mana cost: 8

## Another deck with a dust cost of 0

This one is built entirely from core set cards, so has a dust cost of 0.

# Warlock

- Class: Warlock
- 30 cards
- Cost: 0 dust

2x

Soulfire

Mana cost: 1

2x

Mortal Coil

Mana cost: 1

2x

Acidic Swamp Ooze

Mana cost: 2

2x

Murloc Tidehunter

Mana cost: 2

2x

River Crocolisk

Mana cost: 2

2x

Razorfen Hunter

Mana cost: 3

2x

Shattered Sun Cleric

Mana cost: 3

2x

Shadow Bolt

Mana cost: 3

2x

Chillwind Yeti

Mana cost: 4

2x

Gnomish Inventor

Mana cost: 4

2x

Sen'jin Shieldmasta

Mana cost: 4

2x

Hellfire

Mana cost: 4

1x

Frostwolf Warlord

Mana cost: 5

2x

Dread Infernal

Mana cost: 6

2x

Boulderfist Ogre

Mana cost: 6

1x

Stormwind Champion

Mana cost: 7