Zum Inhalt springen
GET /v1/contest

A member contest rating and ranking

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "rating": 2092.47,
        "source": "LeetCode",
        "username": "votrubac",
        "global_ranking": 13247,
        "top_percentage": 1.59,
        "attended_contests": 487,
        "total_participants": 874213
    },
    "meta": {
        "timestamp": "2026-06-10T14:01:41.122Z",
        "request_id": "405e7280-1478-4c4c-923c-35115203e678"
    },
    "status": "ok",
    "message": "Contest ranking retrieved successfully",
    "success": true
}