Ir al contenido
GET /v1/top

The global rating leaderboard (top-rated active users)

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/codeforces-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "note": "The global Codeforces rating leaderboard — the top-rated active competitors, each with their position, handle, current and peak rating, rank/title, country and organization. total_rated_users is how many rated users the platform has. Pass limit (1-200). Live (the full list is cached ~15m as it is large).",
        "count": 50,
        "source": "Codeforces API (user.ratedList)",
        "leaderboard": [
            {
                "rank": "legendary grandmaster",
                "handle": "jiangly",
                "rating": 3631,
                "country": "China",
                "position": 1,
                "max_rating": 4039,
                "organization": "Jiangly Fan Club"
            },
            {
                "rank": "legendary grandmaster",
                "handle": "Kevin114514",
                "rating": 3574,
                "country": "China",
                "position": 2,
                "max_rating": 3811,
                "organization": "awa qwq"
            },
            {
                "rank": "legendary grandmaster",
                "handle": "maroonrk",
                "rating": 3521,
                "country": "Japan",
                "position": 3,
                "max_rating": 3650,
                "organization": "AtCoder"
            },
            {
                "rank": "legendary grandmaster",
                "handle": "Radewoosh",
                "rating": 3461,
                "country": "Poland",
                "position": 4,
                "max_rating": 3759,
                "organization": "University of Warsaw"
            },
            {
                "rank": "legendary grandmaster",
                "handle": "tourist",
                "rating": 3428,
                "country": "Belarus",
                "position": 5,
                "max_rating": 4009,
                "organization": "ITMO University"
            },
            {
                "rank": "legendary grandmaster",
                "handle": "turmax",
                "rating": 3378,
                "country": null,
                "position": 6,
                "max_rating": 3559,
                "organization": "Saint Petersburg SU"
            },
            {
                "rank": "legendary grandmaster",
                "handle": "ecnerwala",
                "rating": 3275,
                "country": "United States",
                "position": 7,
                "max_rating": 3844,
                "organization": "MIT"
            },
            {
                "rank": "legendary grandmaster",
                "handle": "ksun48",
                "rating": 3260,
                "country": "Canada",
                "position": 8,
                "max_rating": 3781,
                "organization": "MIT"
            },
            {
                "rank": "legendary grandmaster",
                "handle": "Ormlis",
                "rating": 3258,
                "country": "Russia",
      
…