RapidAPI logo

Sign Up

Log In

Hearthstone

FREE
By omgvamp
Updated 3 months ago
Entertainment
9.7/10
Popularity Score
807ms
Latency
97%
Success Rate

Hearthstone API Documentation

This API provides up to date Hearthstone data pulled directly from the game.

View API Details
GETInfo
GETAll Cards
GETSingle Card
GETCard Set
GETCards by Class
GETCards by Race
GETCards by Quality
GETCards by Type
GETCards by Faction
GETCard Search
GETCard Backs
GETInfo

Returns a list of current patch, classes, sets, types, factions, qualities, races and locales.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
callbackSTRING
OPTIONALRequest data to be returned as a JsonP callback.
localeSTRING
OPTIONALWhat locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.
Request Snippet
unirest.get("https://omgvamp-hearthstone-v1.p.rapidapi.com/info")
.header("X-RapidAPI-Host", "omgvamp-hearthstone-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://omgvamp-hearthstone-v1.p.rapidapi.com/info")
.header("X-RapidAPI-Host", "omgvamp-hearthstone-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication