Get GitHub contribution graph
Get the contribution graph for a GitHub profile for a given year.
Optional `year` defaults to the current calendar year when omitted. Contribution counts reflect public GitHub activity for that year.
Headers
Get your API keyAPI key (`sfk_...`)
GitHub username to look up, with or without a leading @.
min 1 chars · max 39 chars
Calendar year for the contribution graph. Defaults to the current year when omitted.
≥ 2007 · ≤ 2100
Endpoint-specific response payload.
Whether contribution data was found for the requested user and year.
one of: found, not_found
Contribution graph for the selected year when available.
GitHub username for the contribution graph.
Calendar year covered by the graph.
Total contributions in the selected year.
≥ 0
Per-day contribution counts for the heatmap.
Calendar date for this cell (YYYY-MM-DD).
Number of contributions on this day.
≥ 0
Heatmap cell color when provided.
Contribution intensity level for the heatmap cell.
≥ 0
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Code example
curl "https://api.socialfetch.dev/v1/github/profiles/torvalds/contributions" \
-H "x-api-key: YOUR_API_KEY"Responses
Lookup result. Check `data.lookupStatus` for `found` or `not_found`.