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

Pricing

One price, in dollars

Providers
Giraffe- served- uptime- p50$1.20/1k reqflat

Try it

Make your first request

Open in
Get a free key
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 30d
POST /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}'
FieldTypeExample value
Request body
handlestring"torvalds"GitHub username.
yearinteger2024Calendar year of the contribution graph. Defaults to the current year.
Response
dataobjectThe contribution graph record, or null when not found.
data.daysobject[]Per-day contribution buckets for the year. Populated whenever the provider has data for the entity.
data.days[].countintegerNumber of contributions on this day.
data.days[].dateUtcnumberUTC epoch seconds at 00:00 UTC of the contribution day. Populated whenever the provider has data for the entity.
data.days[].intensityintegerHeatmap level 0-4.
data.totalintegerTotal contributions across the year.
data.usernamestringGitHub username the contribution graph belongs to. Populated whenever the provider has data for the entity.
data.yearintegerCalendar year of the contribution graph.
foundbooleanWhether contribution data was found for the requested handle.
Price
Price per requestUSD$0.0012
Price /1k reqUSD$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.