/v1/search
Search & filter cards
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/hearthstone-api/v1/search" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hearthstone-api/v1/search", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hearthstone-api/v1/search");
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/search",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"cards": [
{
"id": "BT_006",
"set": "Black Temple",
"cost": 1,
"name": "Evocation",
"text": "Fill your hand with random Mage spells. They are Temporary.",
"type": "Spell",
"armor": null,
"elite": true,
"image": "https://art.hearthstonejson.com/v1/render/latest/enUS/256x/BT_006.png",
"races": [],
"artist": "Gonzalo Ordonez",
"attack": null,
"dbf_id": 56389,
"flavor": "You too could be the winner of the national spelling spree!",
"health": null,
"rarity": "Legendary",
"mechanics": [],
"card_class": "Mage",
"durability": null,
"collectible": true,
"spell_school": "Arcane"
},
{
"id": "UNG_028",
"set": "Ungoro",
"cost": 1,
"name": "Open the Waygate",
"text": "Quest: Cast 8 spells that didn't start in your deck. Reward: Time Warp.",
"type": "Spell",
"armor": null,
"elite": true,
"image": "https://art.hearthstonejson.com/v1/render/latest/enUS/256x/UNG_028.png",
"races": [],
"artist": "Rafael Zanchetin",
"attack": null,
"dbf_id": 41168,
"flavor": "Although powerful, the incantation is simple. It’s just a jump to the left, and then a step to the right.",
"health": null,
"rarity": "Legendary",
"mechanics": [
"Quest"
],
"card_class": "Mage",
"durability": null,
"collectible": true
},
{
"id": "ULD_433",
"set": "Uldum",
"cost": 1,
"name": "Raid the Sky Temple",
"text": "Quest: Cast 10 spells. Reward: Ascendant Scroll.",
"type": "Spell",
"armor": null,
"elite": true,
"image": "https://art.hearthstonejson.com/v1/render/latest/enUS/256x/ULD_433.png",
"races": [],
"artist": "Ludo Lullabi",
"attack": null,
"dbf_id": 53945,
"flavor": "\"Why can't I hold all these scrolls?\"",
"health": null,
"rarity": "Legendary",
"mechanics": [
"Quest"
],
"card_class": "Mage",
"durability": null,
"collectible": true
},
{
"id": "SW_450",
"set": "Stormwind",
"cost": 1,
"name": "Sorcerer
…