/v1/classes
All classes with card counts
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/hearthstone-api/v1/classes" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hearthstone-api/v1/classes", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hearthstone-api/v1/classes");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/hearthstone-api/v1/classes",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"count": 12,
"classes": [
{
"name": "Neutral",
"cards": 2097
},
{
"name": "Mage",
"cards": 583
},
{
"name": "Paladin",
"cards": 583
},
{
"name": "Priest",
"cards": 580
},
{
"name": "Druid",
"cards": 579
},
{
"name": "Warlock",
"cards": 574
},
{
"name": "Hunter",
"cards": 573
},
{
"name": "Warrior",
"cards": 570
},
{
"name": "Shaman",
"cards": 564
},
{
"name": "Rogue",
"cards": 561
},
{
"name": "Demonhunter",
"cards": 389
},
{
"name": "Deathknight",
"cards": 295
}
]
},
"meta": {
"timestamp": "2026-06-08T01:18:33.115Z",
"request_id": "b6d38a4f-0e1f-4162-8211-feec2db730e8"
},
"status": "ok",
"message": "Classes retrieved successfully",
"success": true
}