APIs / GitHub / User Contributions
GitHub: User Contributions
User Contributions from GitHub as JSON. 1 credit per successful call.
GET /v1/github/user-contributions
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
username | string | Required | Up to 39 characters |
to | string | Optional | Any |
Example request
GitHub
GET/v1/github/user-contributions?username=torvalds&to=2025-12-31
{
"search_parameters": {
"engine": "github_user_contributions",
"username": "torvalds",
"to": "2025-12-31"
},
"login": "torvalds",
"to": "2025-12-31",
"days": [
{
"date": "2025-01-01",
"level": 1
},
{
"date": "2025-01-02",
"level": 1
},
{
"date": "2025-01-03",
"level": 2
}
],
"day_count": 365,
"first_date": "2025-01-01",
"last_date": "2025-12-31",
"levels": {
"min": 0,
"max": 4
}
}200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
The response has these 8 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
search_parameters | object |
login | string |
to | string |
days | object[] |
day_count | integer |
first_date | string |
last_date | string |
levels | object |