Skip to content

martinwoodward/json-contributions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Given a Github username and a year, return a JSON object with their contribution chart data. The function simply requests the user's profile page and scrapes the contribution chart data. Based on the work of @jasonlong

Note: this is very alpha. No error checking at all.

/api/user?username=<username>&year=<year>

Example: https://json-contributions-five.vercel.app/api/user?username=martinwoodward&year=2020

Development

I've been using vercel for local dev. To load up a local server: vercel dev after running npm install

About

Serverless function to get a JSON format of a user's GitHub contribution chart

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%