A little snippet to fetch LeetCode stats from its GraphQL.
POST https://leetcode.com/graphql/
query userProfileUserQuestionProgressV2($userSlug: String!) {
userProfileUserQuestionProgressV2(userSlug: $userSlug) {
numAcceptedQuestions {
count
difficulty
}
numFailedQuestions {
count
difficulty
}
numUntouchedQuestions {
count
difficulty
}
userSessionBeatsPercentage {
difficulty
percentage
}
totalQuestionBeatsPercentage
}
}
If you are looking for more then akarsh1995
prepared a cool list of queries you can run through this GraphQL. You can find it here