/v1/leaderboard
The global honor leaderboard (top members by honor)
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/codewars-api/v1/leaderboard" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/codewars-api/v1/leaderboard", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/codewars-api/v1/leaderboard");
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/codewars-api/v1/leaderboard",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "The global Codewars honor leaderboard — the top members ranked by honor points, each with their position, username, kyu/dan rank, clan and honor. The Codewars JSON API exposes only a single user's leaderboardPosition; this is the full ranking. Pass limit (1-200). Live.",
"count": 50,
"source": "Codewars (codewars.com/users/leaderboard)",
"leaderboard": [
{
"clan": "None",
"rank": "1 kyu",
"honor": 487068,
"position": 1,
"username": "g964",
"profile_url": "https://www.codewars.com/users/g964"
},
{
"clan": "Codewars",
"rank": "2 kyu",
"honor": 407476,
"position": 2,
"username": "jhoffner",
"profile_url": "https://www.codewars.com/users/jhoffner"
},
{
"clan": "中国 长垣",
"rank": "1 dan",
"honor": 397169,
"position": 3,
"username": "myjinxin2015",
"profile_url": "https://www.codewars.com/users/myjinxin2015"
},
{
"clan": "freeCodeCamp",
"rank": "2 kyu",
"honor": 382354,
"position": 4,
"username": "PG1",
"profile_url": "https://www.codewars.com/users/PG1"
},
{
"clan": null,
"rank": "2 dan",
"honor": 278500,
"position": 5,
"username": "Unnamed",
"profile_url": "https://www.codewars.com/users/Unnamed"
},
{
"clan": null,
"rank": "2 kyu",
"honor": 181724,
"position": 6,
"username": "wichu",
"profile_url": "https://www.codewars.com/users/wichu"
},
{
"clan": "Riot",
"rank": "2 kyu",
"honor": 173611,
"position": 7,
"username": "xDranik",
"profile_url": "https://www.codewars.com/users/xDranik"
},
{
"clan": null,
"rank": "2 dan",
"honor": 165457,
"position": 8,
"username": "Blind4Basics",
"profile_url": "https://www.codewars.com/users/Blind4Basics"
},
{
"clan": "Gensokyo",
"rank": "2 dan",
"honor": 153776,
"position": 9,
"username": "Voile",
"profile_url": "https://www.codewars.com/users/Voile"
},
{
"clan": "Makuuchi",
"rank": "2 dan",
"honor": 153520,
"position": 10,
…