Zum Inhalt springen
GET /v1/calendar

A member solving streak and activity

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

Beispiel-Response

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

{
    "data": {
        "source": "LeetCode",
        "username": "votrubac",
        "current_streak": 4,
        "total_active_days": 84,
        "active_days_past_year": 84,
        "submissions_past_year": 1235
    },
    "meta": {
        "timestamp": "2026-06-10T14:01:39.798Z",
        "request_id": "f9e8351a-22d0-4cf0-9f91-dd84aa1a3945"
    },
    "status": "ok",
    "message": "Calendar retrieved successfully",
    "success": true
}