/v1/leagues
List leagues (all or filtered)
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/sports-api/v1/leagues" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sports-api/v1/leagues", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sports-api/v1/leagues");
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/sports-api/v1/leagues",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"count": 5,
"sport": "Soccer",
"country": "England",
"leagues": [
{
"id": "4570",
"name": "EFL Cup",
"sport": "Soccer",
"alternate": "Football League Cup, Carabao Cup"
},
{
"id": "4847",
"name": "EFL Trophy",
"sport": "Soccer",
"alternate": "English Football League Trophy"
},
{
"id": "5225",
"name": "England Non League Div One Isthmian North",
"sport": "Soccer",
"alternate": "Non League Div One - Isthmian North"
},
{
"id": "5226",
"name": "England Non League Div One Isthmian South",
"sport": "Soccer",
"alternate": "Non League Div One - Isthmian South Central"
},
{
"id": "5228",
"name": "England Non League Div One Southern Central",
"sport": "Soccer",
"alternate": "Non League Div One - Southern South"
}
]
},
"meta": {
"timestamp": "2026-05-29T23:46:51.014Z",
"request_id": "12ab4aa2-52a4-4f87-824d-af58e34e4574"
},
"status": "ok",
"message": "Leagues retrieved successfully",
"success": true
}