Vai al contenuto
GET /v1/user

A member coding profile and solved counts

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/leetcode-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}