UnifAPI Docs

Get a GitHub user's contribution graph

Returns a GitHub user's daily contribution counts and total for one calendar year (default: the current year). Returns `not_found` when the user does not exist.

Pricing — $ · min $0.003

Minimum 3 credits ($0.003) per call. Records returned above the minimum bill 1 credit ($0.001) each.

GET
/github/users/{username}/contributions

Authorization

bearerAuth
AuthorizationBearer <token>

UnifAPI API key. Provider credentials are managed by UnifAPI.

In: header

Path Parameters

username*string

GitHub username of a user or organization.

Length1 <= length <= 500

Query Parameters

year?string

Calendar year for the contribution graph. Default: current calendar year.

Length1 <= length

Header Parameters

Unifapi-Version?"2026-07-01"

Pin the API version an integration was built against (date-based, e.g. 2026-07-01). Omit to use the current version. Public URL paths stay stable and unversioned; breaking changes ship under a new dated version and are announced with Deprecation and Sunset response headers. The served version is echoed in every response's Unifapi-Version header. Policy: https://unifapi.com/versioning.md

Default"2026-07-01"

Value in

  • "2026-07-01"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/github/users/string/contributions"
{  "request_id": "string",  "data": [    {      "date": "string",      "contribution_count": 0,      "color": "string",      "intensity": 0    }  ],  "pagination": {    "has_more": true,    "next_cursor": "string"  },  "billing": {    "credits_charged": 0,    "records_charged": 0,    "balance_remaining": 0,    "truncated_due_to_balance": true  }}