Naar de inhoud
GET /v1/user

A member coding profile and solved counts

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "about": null,
        "avatar": "https://assets.leetcode.com/users/votrubac/avatar_1610271695.png",
        "badges": [
            "Knight",
            "500 Days Badge",
            "365 Days Badge",
            "1000 Days Badge",
            "100 Days Badge 2025",
            "50 Days Badge 2025",
            "200 Days Badge 2024",
            "100 Days Badge 2024",
            "50 Days Badge 2024",
            "50 Days Badge 2023",
            "100 Days Badge 2023",
            "100 Days Badge 2022",
            "Oct LeetCoding Challenge",
            "Jul LeetCoding Challenge",
            "Aug LeetCoding Challenge",
            "Sep LeetCoding Challenge"
        ],
        "school": "Kharkiv Air Force University",
        "solved": {
            "all": 3822,
            "easy": 931,
            "hard": 888,
            "medium": 2003
        },
        "source": "LeetCode",
        "company": "Google",
        "country": "United States",
        "ranking": 51,
        "username": "votrubac",
        "real_name": "Vlad",
        "github_url": "https://github.com/votrubac",
        "reputation": 99866,
        "badge_count": 16,
        "twitter_url": null,
        "linkedin_url": null,
        "solution_count": 1878,
        "post_view_count": 10786515,
        "total_submissions": {
            "all": 3826,
            "easy": 931,
            "hard": 890,
            "medium": 2005
        }
    },
    "meta": {
        "timestamp": "2026-06-10T14:01:40.503Z",
        "request_id": "90b9d793-c1f8-44f6-b9c3-e4401ec46d6f"
    },
    "status": "ok",
    "message": "User retrieved successfully",
    "success": true
}