LeetcodeApi
It provides a simple and convenient way to retrieve essential details about a user's LeetCode profile by making a request to the API endpoint with the desired username as a parameter. The API response will include the basic information of the specified LeetCode user, allowing easy access to their profile data for further analysis or integration into other applications.
LeetcodeApi endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET |
getName /{username}/name |
Get the name of the user |
| GET |
getTotalSolved /{username}/totalSolved |
Get the total number of questions solved by the user. |
| GET |
getRank /{username}/rank |
Get the contest rank of the user |
| GET |
getTotalActiveDays /{username}/totalActiveDays |
Get the total active days of the user in the current year. |
| GET |
getMaxStreak /{username}/maxStreak |
Get the max streak of the user in the current user |
| GET |
getHardQuestion /{username}/hardQuestion |
Get the number of hard questions solved by the user. |
| GET |
getEasyQuestion /{username}/easyQuestion |
Get the number of easy question solved by the user |
| GET |
getMediumQuestion /{username}/mediumQuestion |
Get the number of medium level questing solved by the user. |
LeetcodeApi pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|