/v1/leagues
Supported leagues
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/soccer-api/v1/leagues" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/soccer-api/v1/leagues", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/soccer-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/soccer-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": 15,
"leagues": [
{
"id": "eng.1",
"name": "English Premier League"
},
{
"id": "esp.1",
"name": "Spanish La Liga"
},
{
"id": "ita.1",
"name": "Italian Serie A"
},
{
"id": "ger.1",
"name": "German Bundesliga"
},
{
"id": "fra.1",
"name": "French Ligue 1"
},
{
"id": "ned.1",
"name": "Dutch Eredivisie"
},
{
"id": "por.1",
"name": "Portuguese Primeira Liga"
},
{
"id": "eng.2",
"name": "English Championship"
},
{
"id": "usa.1",
"name": "Major League Soccer"
},
{
"id": "mex.1",
"name": "Mexican Liga MX"
},
{
"id": "bra.1",
"name": "Brazilian Serie A"
},
{
"id": "uefa.champions",
"name": "UEFA Champions League"
},
{
"id": "uefa.europa",
"name": "UEFA Europa League"
},
{
"id": "eng.fa",
"name": "English FA Cup"
},
{
"id": "esp.copa_del_rey",
"name": "Copa del Rey"
}
]
},
"meta": {
"timestamp": "2026-06-07T16:46:32.052Z",
"request_id": "83025059-ffbe-4429-a77a-b2acb0489e1c"
},
"status": "ok",
"message": "Leagues retrieved successfully",
"success": true
}