Hearthstone API

Games & Comics / X-Mashape-Key Intermediate HTTPS
Check official documentation

Overview

Hearthstone API provides detailed card data for the Hearthstone collectible card game, including card stats, artwork, and set information. You access it through RapidAPI using a Mashape key, making authentication straightforward. It is ideal for building deck builders, card browsers, or fan sites.

💡

Beginner Tip

Sign up on RapidAPI to get your X-Mashape-Key, then include it in the request header; you can filter cards by class, set, or type to narrow results.

Available Data

vehicle make and model
year and specifications
fuel economy
VIN decode data
Use case: Integrate hearthstone cards information data into web and mobile applications

Example Response

JSON Response
{
  "make": "Toyota",
  "model": "Camry",
  "year": 2025,
  "engine": "2.5L 4-cylinder",
  "fuel_economy": {
    "city_mpg": 28,
    "highway_mpg": 39
  },
  "msrp": 28400
}

Field Reference

cardId Unique identifier string for the card used across Hearthstone systems.
name The display name of the Hearthstone card.
type Card type such as Minion, Spell, or Weapon.
cost Mana cost required to play the card.
attack Attack value for minion cards; absent for spells.
health Health value for minion cards; absent for spells.

Implementation Example

const url = "http://hearthstoneapi.com/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

403 Forbidden Missing or invalid X-Mashape-Key header.
Include the header X-Mashape-Key: YOUR_API_KEY with your RapidAPI subscription key.
429 Too Many Requests You have exceeded the rate limits of your RapidAPI plan.
Upgrade your RapidAPI plan or cache responses locally to reduce call frequency.
Large payload / slow response Requesting all cards at once returns a very large JSON payload.
Filter by card class or set using query parameters to reduce response size.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 10/20
🔒 Security 10/15
🛠 Developer XP 3/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth X-Mashape-Key
HTTPS REQUIRED
CORS UNKNOWN
Category Games & Comics
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →