/v1/meta
Houses & usage notes
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/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/harrypotter-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/harrypotter-api/v1/meta");
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/meta",
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": {
"note": "The Wizarding World of Harry Potter. /v1/character = search characters by name (and house=Gryffindor|Slytherin|Hufflepuff|Ravenclaw) or fetch by id — with species, blood status, patronus, wand, family and more; /v1/spell = search spells (incantation, effect, light); /v1/book = the seven books; /v1/potion = search potions (ingredients, effect, difficulty). Add page & pageSize to paginate; ids are lowercase-hyphenated slugs.",
"houses": [
"Gryffindor",
"Slytherin",
"Hufflepuff",
"Ravenclaw"
],
"source": "PotterDB (api.potterdb.com)",
"endpoints": [
"/v1/character",
"/v1/spell",
"/v1/book",
"/v1/potion",
"/v1/meta"
]
},
"meta": {
"timestamp": "2026-06-01T00:04:31.802Z",
"request_id": "8def8def-4ed6-4af9-9329-2c8ebd2d385b"
},
"status": "ok",
"message": "Meta retrieved",
"success": true
}