Zum Inhalt springen
GET /v1/leaderboards

Leaderboard top players

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "count": 20,
        "players": [
            {
                "url": "https://www.chess.com/member/MagnusCarlsen",
                "rank": 1,
                "score": 3373,
                "title": "GM",
                "country": "NO",
                "username": "MagnusCarlsen"
            },
            {
                "url": "https://www.chess.com/member/gurelediz",
                "rank": 2,
                "score": 3335,
                "title": "GM",
                "country": "TR",
                "username": "gurelediz"
            },
            {
                "url": "https://www.chess.com/member/Hikaru",
                "rank": 3,
                "score": 3322,
                "title": "GM",
                "country": "US",
                "username": "Hikaru"
            },
            {
                "url": "https://www.chess.com/member/Polish_fighter3000",
                "rank": 4,
                "score": 3317,
                "title": "GM",
                "country": "PL",
                "username": "Polish_fighter3000"
            },
            {
                "url": "https://www.chess.com/member/nihalsarin",
                "rank": 5,
                "score": 3314,
                "title": "GM",
                "country": "AM",
                "username": "nihalsarin"
            },
            {
                "url": "https://www.chess.com/member/GHANDEEVAM2003",
                "rank": 6,
                "score": 3298,
                "title": "GM",
                "country": "IN",
                "username": "GHANDEEVAM2003"
            },
            {
                "url": "https://www.chess.com/member/Philippians46",
                "rank": 7,
                "score": 3290,
                "title": "GM",
                "country": "IT",
                "username": "Philippians46"
            },
            {
                "url": "https://www.chess.com/member/GMWSO",
                "rank": 8,
                "score": 3278,
                "title": "GM",
                "country": "US",
                "username": "GMWSO"
            },
            {
                "url": "https://www.chess.com/member/DenLaz",
                "rank": 9,
                "score": 3275,
                "title": "GM",
                "country": "BY",
                "username": "DenLaz"
            },
            {
                "url": "https://www.chess.com/member/Firouzja2003",
                "rank": 10,
                "score": 3270,
                "title": "GM",
                "country": "FR",
                "username": "Firouzja2003"
            },
            {
                "url": "https://www.chess.com/member/rpragchess",
                "rank": 11,
                "score": 3266,
                "title": "GM",
                "country": "IN",
                "username": "rpragchess"
            },
            {
                "url": "https://www.chess.com/member/ChessWarrior7197",
    
…