/v1/spell
Search spells
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
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_..."}
)
Example response
A real response from this endpoint, captured by the latest 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
}