API para GitHub: Atividade do usuário
Liste a atividade pública de contribuição de um usuário do GitHub em um ano, pelo nome de usuário (resumos mensais de commits, pull requests e issues, com links dos repositórios).
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"activity": [
{
"items": [
{
"repo": "example",
"text": "A short example description of this item.",
"url": "https://example.com/page"
}
],
"summary": "A short example description of this item."
}
],
"month": "example",
"nextCursor": "example",
"noActivity": true,
"username": "alex_rivera",
"year": 2024
},
"found": true,
"reason": "not_found"
}interface GithubUserActivityResponse {
data: {
activity: {
items?: {
repo?: string;
text?: string;
url?: string;
}[];
summary: string;
}[];
month: string;
nextCursor: string | null;
noActivity: boolean;
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_activity \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"kentcdodds"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| handle | string | "kentcdodds"Nome de usuário no GitHub. |
| cursor | string | Cursor de paginação de uma resposta anterior (volta mês a mês). |
| year | string | Ano da atividade de contribuição a retornar (padrão: o ano atual). |
| Resposta | ||
| data | object | |
| data.activity | object[] | Populated whenever the provider has data for the entity. |
| data.activity[].items | object[] | The individual entries behind this activity summary. Empty when the upstream published no breakdown. |
| data.activity[].items[].repo | string | Full repository name in owner/name form for this entry. |
| data.activity[].items[].text | string | The entry as GitHub renders it, e.g. "owner/repo 353 commits". |
| data.activity[].items[].url | string | Canonical URL of the repository for this entry. |
| data.activity[].summary | string | Populated whenever the provider has data for the entity. |
| data.month | string | Populated whenever the provider has data for the entity. |
| data.nextCursor | string | Opaque cursor for the next page of activity, or null when this lane has no more. Pass it back as cursor to continue. |
| data.noActivity | boolean | |
| data.username | string | Populated whenever the provider has data for the entity. |
| data.year | integer | |
| found | boolean | |
| 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 Atividade do usuário da API para GitHub
O endpoint Atividade do usuário da AnyAPI para GitHub retorna dados de GitHub em JSON normalizado com uma chamada POST para /v1/run/github.user_activity. Liste a atividade pública de contribuição de um usuário do GitHub em um ano, pelo nome de usuário (resumos mensais de commits, pull requests e issues, com links dos repositórios). 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.