leetcode-stats-api icon indicating copy to clipboard operation
leetcode-stats-api copied to clipboard

How to include beats % along with the response

Open pranavmappoli opened this issue 2 years ago • 1 comments

How we can get the beats % on each section as we can see in the leetcode profile. also details of badge etc

pranavmappoli avatar May 25 '22 20:05 pranavmappoli

To find this out, you can go to the Networks tab of the Chrome developer tools and see what the GraphQL queries look like.

For example, I found this query to work for the beats % of each section:

query getUserProfile($username: String!) {
  matchedUser(username: $username) {
    problemsSolvedBeatsStats {
        difficulty
        percentage
    }
  }
}

JeremyTsaii avatar Jul 19 '22 02:07 JeremyTsaii