Aller au contenu
GET /v1/search

Search & filter cards

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/hearthstone-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
…