Zum Inhalt springen
GET /v1/leagues

Supported league aliases and ids

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/cricketlive-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/cricketlive-api/v1/leagues" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cricketlive-api/v1/leagues", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cricketlive-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/cricketlive-api/v1/leagues",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 16,
        "leagues": [
            {
                "id": "8048",
                "alias": "ipl"
            },
            {
                "id": "8039",
                "alias": "world-cup"
            },
            {
                "id": "8040",
                "alias": "t20-world-cup-qualifier"
            },
            {
                "id": "8044",
                "alias": "big-bash"
            },
            {
                "id": "8044",
                "alias": "bbl"
            },
            {
                "id": "8037",
                "alias": "champions-trophy"
            },
            {
                "id": "8038",
                "alias": "world-cup-qualifier"
            },
            {
                "id": "8052",
                "alias": "county-championship"
            },
            {
                "id": "8052",
                "alias": "county"
            },
            {
                "id": "8043",
                "alias": "sheffield-shield"
            },
            {
                "id": "8050",
                "alias": "ranji-trophy"
            },
            {
                "id": "8053",
                "alias": "t20-blast"
            },
            {
                "id": "8041",
                "alias": "supersport"
            },
            {
                "id": "8074",
                "alias": "intercontinental-cup"
            },
            {
                "id": "8049",
                "alias": "indian-cricket-league"
            },
            {
                "id": "8046",
                "alias": "state-t20"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-08T01:20:03.436Z",
        "request_id": "fd83cc20-459f-4b83-a45a-d6b849283fe8"
    },
    "status": "ok",
    "message": "Leagues retrieved successfully",
    "success": true
}