Naar de inhoud
GET /v1/calendar

A member solving streak and activity

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/leetcode-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}