Leetcode API Endpoints

15 endpoints available

All API requests are securely proxied through https://leetcode.com/graphql/

User Profile Information
Fetches basic user profile data, including contest badges, social media links, personal details, and activity counts.
ProfileuserPublicProfile
Programming Language Statistics
Retrieves problems solved broken down by programming language.
StatisticslanguageStats
Problem-Solving Skills Statistics
Provides problems solved categorized by skill areas (advanced, intermediate, fundamental).
StatisticsskillStats
Contest History and Rankings
Gathers a user's contest participation history and ranking details.
ContestuserContestRankingInfo
Problem Progress by Difficulty
Offers a detailed breakdown of a user's problem progress by difficulty level (Easy, Medium, Hard).
ProgressuserProfileUserQuestionProgressV2
Overall Submission Statistics
Provides overall submission statistics and problem counts by difficulty.
StatisticsuserProblemsSolved
User Submission Calendar
Fetches a user's activity calendar, including active years, streaks, total active days, and submission counts.
ActivityuserProfileCalendar
Recent Accepted Submissions
Lists a specified number of a user's most recently accepted (solved) problems.
ActivityrecentAcSubmissions
Daily Coding Challenge Information
Retrieves comprehensive details about the current day's Daily Coding Challenge question.
ChallengequestionOfToday
Upcoming Contests
Retrieves information about all upcoming contests.
ContestgetContests
User Streak Counter
Auth
Retrieves current daily streak information for the authenticated user.
ActivitygetStreakCounter
Current Server Timestamp
Gets the current server timestamp in Unix epoch seconds (with milliseconds).
SystemcurrentTimestamp
Active User Badge Information
Specifically fetches details about a user's currently active badge.
ProfilegetUserProfile
Daily Coding Challenge Medal Information
Auth
Provides the name and icon configuration for a Daily Coding Challenge medal for a specific year and month.
ChallengecodingChallengeMedal
User Badges Information
Fetches information about a user's earned badges and upcoming badges.
ProfileuserBadges
Output Console

No data yet

Click "Test" on any endpoint to see results here