https://github.com/jasonlong/json-contributions
Serverless function to get a JSON format of a user's GitHub contribution chart
https://github.com/jasonlong/json-contributions
contributions github serverless
Last synced: 10 months ago
JSON representation
Serverless function to get a JSON format of a user's GitHub contribution chart
- Host: GitHub
- URL: https://github.com/jasonlong/json-contributions
- Owner: jasonlong
- Created: 2020-06-27T23:55:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-13T15:12:22.000Z (almost 3 years ago)
- Last Synced: 2025-04-01T20:14:35.662Z (10 months ago)
- Topics: contributions, github, serverless
- Language: JavaScript
- Homepage: https://json-contributions.vercel.app/api/user?username=jasonlong&year=2018
- Size: 67.4 KB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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.
**Note: this is very alpha. No error checking at all.**
```
/api/user?username=&year=
```
Example: https://json-contributions.vercel.app/api/user?username=jasonlong&year=2018
#### Development
I've been using `vercel` for local dev. To load up a local server: `vercel dev`.