GITHUB API
Contributions
Retrieve contributions from GitHub with a single API request.
GET
/api/data/v1/github/user/contributions1credit base cost
Request parameters
Up to 1 creditGitHub handle
GitHub profile URL
Contribution graph year. Defaults to the current year.
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/github/user/contributions?handle=torvalds' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"contributions": {
"username": "torvalds",
"year": 2026,
"total_contributions": 1214,
"days": [
{
"date": "2026-01-01",
"contribution_count": 4,
"color": null,
"intensity": 1
}
]
},
"credits_charged": 1,
"credits_remaining": 1000,
"request_id": "00000000-0000-4000-8000-000000000000"
}Example data from the API specification. Run a request to retrieve current data.
Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"contributions": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"year": {
"type": "integer"
},
"total_contributions": {
"type": "integer"
},
"days": {
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"type": "string"
},
"contribution_count": {
"type": "integer"
},
"color": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"intensity": {
"type": "integer"
}
}
}
}
}
},
"credits_charged": {
"type": "integer",
"minimum": 0,
"description": "FetchGoblin credits charged for this request."
},
"credits_remaining": {
"type": "integer",
"description": "Your FetchGoblin credit balance after this request."
},
"request_id": {
"type": "string",
"format": "uuid",
"description": "FetchGoblin request identifier."
}
}
}