Dynamically generated GeeksForGeeks stats for your readmes!
API to get count of total problems solved on GeeksForGeeks with details.
you can use this API to show your stats on github profile or any website.
node.js
express
cheerio
to show in markdown (Github profile) simply copy below code and replace <YOUR_USERNAME>
with your GeeksForGeeks UserName
- if you have blank space in your userName dont use Blank Space use %20
for example if your GeeksForGeeks userName is "narendra dewasi" , then you'll need to replace <YOUR_USERNAME> with narendra%20dewasi
that's it, if you get any error , make sure you have solved at least 1 problem on GFG and cross check username and link
send me message if any error occur LinkedIn
[![Narendra's geeksForgeeks stats](https://geeks-for-geeks-stats-api.vercel.app/?userName=<YOUR_USERNAME>)](https://github.com/napiyo/geeksForGeeksStatsAPI)
by default when you click on stat box you'll redirect to this github. if you want to redirect to your geeksForgeeks profile or any other replace <YOUR_LINK_HERE>
.
DONT FORGET to replace userName as mentioned before dont use
"
in your link , simple paste it
[![Narendra's geeksForgeeks stats](https://geeks-for-geeks-stats-api.vercel.app/?userName=<YOUR_USERNAME>)](<YOUR_LINK_HERE>)
https://geeks-for-geeks-stats-api.vercel.app/?raw=<Y/N>&userName=<GFG_USERNAME>
To get Response in JSON use raw=y query, else dont pass raw
Tip
API domain is updated, Use this New API it supports JSON response also: OLD api is also live.
{
"School": 5,
"Basic": 27,
"Easy": 56,
"Medium": 97,
"Hard": 8,
"userName": "napiyo",
"totalProblemsSolved": 193
}
inspired by https://github.com/KnlnKS/leetcode-stats