/v1/leagues
List leagues (all or filtered)
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
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_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}