You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Karol Dworakowski 2637bee48f fixed readme 3 years ago
.gitignore added .gitignore 4 years ago
README.md fixed readme 3 years ago
github_cc.js fixed dependencies 4 years ago
package.json fixed dependencies 4 years ago

README.md

Github contributions calendar API

Simple api to extract data from contributions calendar: As far as I know github doesn't provide such api so I decided to do it myself.

Check live demo at http://github-calendar.herokuapp.com/

  • /commits/:user - returns array with number of commits everyday
  • /total/:user - returns total number of commits this year
  • /commits/last/:user - returns number of commits for last 31 days

Response format: JSON

Example request:

GET http://github-calendar.herokuapp.com/commits/kadw

Example response:

{"data":[0,0,0,1,2,0,1,0,0,0,0,0,1,1,2,0,0,1,1,2,0,1,0,1,2,1,0,0,0,1,1,1,1,0,1,2,4,0,0,0,1,0,0,0,0,0,2,0,3,0,4,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,1,0,2,1,0,1,1,0,2,2,1,3,1,0,0,0,1,0,0,0,0,2,0,3,0,0,0,0,0,2,1,0,2,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,4,8,10,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,1,4,0,0,0,2,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,5,0,0,1,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}