Since the URL https://github.com/users/<username>/contributions_calendar_data no longer works, you need to parse the SVG from https://github.com/users/<username>/contributions .
Unfortunately, Github loves security, and CORS is disabled on its server.
To solve this problem, I configured the API for me and everyone who needs it, just GET https://github-stats.com/api/user/streak/current/{username} (CORS enabled), and you will get and reply So:
{ "success":true, "currentStreak": 3 }
https://github-stats.com will soon realize more statistics endpoints :)
Request a new endpoint at https://github.com/SherlockStd/github-stats.com/issues , it will be nice to find a way to implement them!
SherlockStd May 16 '17 at 16:53 2017-05-16 16:53
source share