API para GitHub: Contribuições do usuário
Obtenha o gráfico de contribuições de um usuário do GitHub em um ano (total de contribuições, mais contagens por dia e intensidade do mapa de calor).
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"days": [
{
"count": 12500,
"dateUtc": 12.5,
"intensity": 42
}
],
"total": 12500,
"username": "alex_rivera",
"year": 2024
},
"found": true,
"reason": "not_found"
}interface GithubUserContributionsResponse {
data: {
days: {
count: number;
dateUtc: number;
intensity: number;
}[];
total: number;
username: string;
year: number;
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -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}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| handle | string | "torvalds"Nome de usuário no GitHub. |
| year | integer | 2024Ano do gráfico de contribuições. O padrão é o ano atual. |
| Resposta | ||
| 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. |
| reason | "not_found" | Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost. |
| Preço | ||
| Preço por requisição | USD | US$ 0,0012 |
| Preço /mil req. | USD | US$ 1,20 |
Dúvidas frequentes
Sobre o endpoint Contribuições do usuário da API para GitHub
O endpoint Contribuições do usuário da AnyAPI para GitHub retorna dados de GitHub em JSON normalizado com uma chamada POST para /v1/run/github.user_contributions. Obtenha o gráfico de contribuições de um usuário do GitHub em um ano (total de contribuições, mais contagens por dia e intensidade do mapa de calor). A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa a partir de US$ 1,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal.