Skip to content
GET /v1/user

A member coding profile and solved counts

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/leetcode-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest 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
}