GitHub API
GitHub User contributions API
Fetch a GitHub user's contribution graph for a year (total contributions plus per-day counts and heatmap intensity).
POST/v1/run/github.user_contributions
Requests
-
30d
Try it
Make your first request
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
"data": {
"days": [
{
"count": 12500,
"dateUtc": 12.5,
"intensity": 42
}
],
"total": 12500,
"username": "alex_rivera",
"year": 2024
},
"found": true
}Response interface
interface GithubUserContributionsResponse {
data: {
days: {
count: number;
dateUtc: number;
intensity: number;
}[];
total: number;
username: string;
year: number;
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-16 · uptime and latency measured over 30dPOST /v1/run/github.user_contributions
curl -X POST https://api.getanyapi.com/v1/run/github.user_contributions \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"torvalds","year":2024}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| handle | string | "torvalds"GitHub username. |
| year | integer | 2024Calendar year of the contribution graph. Defaults to the current year. |
| Response | ||
| data | object | The contribution graph record, or null when not found. |
| data.days | object[] | Per-day contribution buckets for the year. Populated whenever the provider has data for the entity. |
| data.days[].count | integer | Number of contributions on this day. |
| data.days[].dateUtc | number | UTC epoch seconds at 00:00 UTC of the contribution day. Populated whenever the provider has data for the entity. |
| data.days[].intensity | integer | Heatmap level 0-4. |
| data.total | integer | Total contributions across the year. |
| data.username | string | GitHub username the contribution graph belongs to. Populated whenever the provider has data for the entity. |
| data.year | integer | Calendar year of the contribution graph. |
| found | boolean | Whether contribution data was found for the requested handle. |
| Price | ||
| Price per request | USD | $0.0012 |
| Price /1k req | USD | $1.20 |
FAQ
About the GitHub User contributions API
The AnyAPI GitHub User contributions API returns GitHub user contributions data as normalized JSON from one POST call to /v1/run/github.user_contributions. Fetch a GitHub user's contribution graph for a year (total contributions plus per-day counts and heatmap intensity). AnyAPI returns one normalized schema whichever source serves it. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum.
It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.
Fetch a GitHub user's contribution graph for a year (total contributions plus per-day counts and heatmap intensity). The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.
More to call