/v1/categories
All categories with counts
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/quiz-api/v1/categories" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/quiz-api/v1/categories", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/quiz-api/v1/categories");
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/quiz-api/v1/categories",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"count": 20,
"categories": [
{
"name": "animals",
"questions": 1365
},
{
"name": "brain-teasers",
"questions": 198
},
{
"name": "celebrities",
"questions": 3160
},
{
"name": "entertainment",
"questions": 279
},
{
"name": "for-kids",
"questions": 751
},
{
"name": "general",
"questions": 3279
},
{
"name": "geography",
"questions": 842
},
{
"name": "history",
"questions": 1637
},
{
"name": "hobbies",
"questions": 1240
},
{
"name": "humanities",
"questions": 1092
},
{
"name": "literature",
"questions": 1269
},
{
"name": "movies",
"questions": 4256
},
{
"name": "music",
"questions": 5280
},
{
"name": "people",
"questions": 2739
},
{
"name": "religion-faith",
"questions": 638
},
{
"name": "science-technology",
"questions": 2484
},
{
"name": "sports",
"questions": 2840
},
{
"name": "television",
"questions": 5219
},
{
"name": "video-games",
"questions": 594
},
{
"name": "world",
"questions": 4862
}
],
"total_questions": 44024
},
"meta": {
"timestamp": "2026-05-30T22:48:26.067Z",
"request_id": "ff984d05-1bc0-4b77-9707-c0351db1d3d8"
},
"status": "ok",
"message": "Categories retrieved",
"success": true
}