/v1/spell
Search spells
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/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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"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
}