API para GitHub: Usuário
Obtenha o perfil público de um usuário do GitHub pelo nome de usuário (nome, bio, empresa, localização, seguidores e número de repositórios).
Rede de provedores
Provedores ordenados por tráfego
Teste
Faça sua primeira requisição
{
"data": {
"avatarUrl": "https://example.com/image.jpg",
"bio": "A short example description of this item.",
"blog": "example",
"company": "Acme Inc",
"createdUtc": 12.5,
"followers": 12500,
"following": 12500,
"id": "a1b2c3d4",
"location": "example",
"login": "alex_rivera",
"name": "Example title",
"profileUrl": "https://example.com/page",
"publicGists": 42,
"publicRepos": 42,
"twitterUsername": "alex_rivera",
"type": "general"
},
"found": true,
"reason": "not_found"
}interface GithubUserResponse {
data: {
avatarUrl: string;
bio: string;
blog?: string;
company?: string;
createdUtc?: number;
followers: number;
following: number;
id?: string;
location?: string;
login: string;
name: string;
profileUrl?: string;
publicGists?: number;
publicRepos: number;
twitterUsername?: string;
type?: string;
} | 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 \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"torvalds"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| handle | string | "torvalds"Nome de usuário no GitHub. |
| Resposta | ||
| data | object | The user profile record, or null when not found. |
| data.avatarUrl | string | URL of the profile avatar image. Populated whenever the provider has data for the entity. |
| data.bio | string | Profile bio text. |
| data.blog | string | Blog or website URL from the profile. |
| data.company | string | Company listed on the profile. |
| data.createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity. |
| data.followers | integer | Number of followers. |
| data.following | integer | Number of accounts the user follows. |
| data.id | string | GitHub's numeric user id, as a string. |
| data.location | string | Location listed on the profile. |
| data.login | string | GitHub username (handle). Populated whenever the provider has data for the entity. |
| data.name | string | Display name, or empty string if unset. Populated whenever the provider has data for the entity. |
| data.profileUrl | string | Canonical GitHub profile URL. |
| data.publicGists | integer | Count of public gists. |
| data.publicRepos | integer | Count of public repositories. |
| data.twitterUsername | string | Linked X/Twitter username. |
| data.type | string | "User" or "Organization". |
| found | boolean | Whether a user 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 Usuário da API para GitHub
O endpoint Usuário da AnyAPI para GitHub retorna dados de GitHub em JSON normalizado com uma chamada POST para /v1/run/github.user. Obtenha o perfil público de um usuário do GitHub pelo nome de usuário (nome, bio, empresa, localização, seguidores e número de repositórios). A AnyAPI distribui cada requisição entre 2 fontes, com failover automático quando uma falha. Custa a partir de US$ 1,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Usuário da API para GitHub feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 0,8 segundos, em 6 chamadas medidas.