/v1/spell
Search spells
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/harrypotter-api/v1/spell" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/harrypotter-api/v1/spell", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/harrypotter-api/v1/spell");
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/harrypotter-api/v1/spell",
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": {
"page": 1,
"count": 1,
"total": 1,
"spells": [
{
"id": "patronus-charm",
"hand": null,
"name": "Patronus Charm",
"wiki": "https://harrypotter.fandom.com/wiki/Patronus_Charm",
"image": "https://static.wikia.nocookie.net/harrypotter/images/f/fe/Patronus_PM_SilverStagPatronus_MomentIllust.jpg",
"light": "Silver",
"effect": "Conjured a spirit guardian",
"creator": null,
"category": "Charm",
"incantation": "Expecto Patronum(ex-PEK-toh pa-TRO-num)"
}
],
"page_size": 20
},
"meta": {
"timestamp": "2026-06-01T00:04:31.737Z",
"request_id": "07b97023-bf8c-4075-ae6b-564799b46ab8"
},
"status": "ok",
"message": "Spell retrieved",
"success": true
}