Get the contribution graph for a GitHub profile for a given year.
Endpoint
/v1/github/profiles/{handle}/contributions
Path
GitHub username to look up, with or without a leading @.
Query
Calendar year for the contribution graph. Defaults to the current year when omitted.
const response = await fetch( "https://api.socialfetch.dev/v1/github/profiles/torvalds/contributions", { headers: { "x-api-key": "YOUR_API_KEY", } } ); const data = await response.json(); console.log(data);