Skip to content

HarryHighPants/github-contributions-api

 
 

Repository files navigation

Minimal GitHub Contributions API

CI

An API that returns minimal GitHub contributions data for a user.

How to run

npm install npm start

For development:

npm run dev

Usage

Send a GET request to the API in the following format:

https://contributions-api.harryab.com/GITHUB_USERNAME?weeks=2

And you will receive an array of the contribution levels over that time:

[0, 1, 3, 0, 0, 1, 0, 0, 1, 3, 0, 0, 1, 0]
type Level = 0 | 1 | 2 | 3 | 4 export type Response = Level[]

The original API repo fetches much more detailed info

About

A simple API that returns number of Github contributions based on a users Github profile

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.9%
  • JavaScript 4.1%