API para GitHub

API para GitHub: Repositório

Obtenha os metadados de um repositório do GitHub pela URL (estrelas, forks, linguagem, tópicos, licença e datas).

POST/v1/run/github.repository
Disponibilidade
96,88%
30d · 32 chamadas
Requisições
37
30d · semanal, últimas 12 sem.
Resposta
2,0s
mediana · 30d

Preços

Um preço, em dólares

Teste

Faça sua primeira requisição

Abrir em
Obter chave grátis
Resposta de exemplo
Execuções grátis retornam só os primeiros 3 resultados. Recarregue uma chave para receber a resposta completa.
{
  "data": {
    "archived": false,
    "avatarUrl": "https://example.com/image.jpg",
    "createdUtc": 12.5,
    "defaultBranch": "example",
    "description": "A short example description of this item.",
    "fork": true,
    "forks": 42,
    "fullName": "Alex Rivera",
    "homepage": "example",
    "id": "a1b2c3d4",
    "language": "en",
    "license": "example",
    "name": "Example title",
    "openIssues": 42,
    "owner": "Alex Rivera",
    "private": false,
    "profileUrl": "https://example.com/page",
    "pushedAt": "example",
    "size": 42,
    "stars": 5,
    "topics": [
      "example"
    ],
    "updatedAt": "2024-01-15T09:30:00Z",
    "url": "https://example.com/page",
    "watchers": 42
  },
  "found": true,
  "reason": "not_found"
}
Interface da resposta
interface GithubRepositoryResponse {
  data: {
    archived?: boolean;
    avatarUrl?: string;
    createdUtc?: number;
    defaultBranch?: string;
    description?: string | null;
    fork?: boolean;
    forks?: number;
    fullName: string;
    homepage?: string | null;
    id?: string;
    language?: string | null;
    license?: string | null;
    name: string;
    openIssues?: number;
    owner?: string;
    private?: boolean;
    profileUrl?: string;
    pushedAt?: string;
    size?: number;
    stars?: number;
    topics?: string[];
    updatedAt?: string;
    url: string;
    watchers?: 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 30d
POST /v1/run/github.repository
curl -X POST https://api.getanyapi.com/v1/run/github.repository \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://github.com/facebook/react"}'
CampoTipoValor de exemplo
Corpo da requisição
urlstring"https://github.com/facebook/react"URL do repositório no GitHub (ex.: https://github.com/facebook/react).
Resposta
dataobjectThe repository record, or null when not found.
data.archivedbooleanWhether the repository is archived.
data.avatarUrlstringAvatar image URL of the repository owner.
data.createdUtcnumberUTC 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.defaultBranchstringName of the default branch. Populated whenever the provider has data for the entity.
data.descriptionstringShort repository description, or null if none.
data.forkbooleanWhether the repository is a fork.
data.forksintegerNumber of forks.
data.fullNamestringFull repository name in owner/name form. Populated whenever the provider has data for the entity.
data.homepagestringProject homepage URL, or null if none.
data.idstringGitHub's numeric repository id, as a string.
data.languagestringPrimary programming language, or null if undetected.
data.licensestringLicense name, or null if unlicensed.
data.namestringRepository short name (without owner). Populated whenever the provider has data for the entity.
data.openIssuesintegerCount of open issues and pull requests.
data.ownerstringLogin of the repository owner (user or organization). Populated whenever the provider has data for the entity.
data.privatebooleanWhether the repository is private.
data.profileUrlstringGitHub profile URL of the repository owner.
data.pushedAtstringLast push timestamp (ISO 8601). Populated whenever the provider has data for the entity.
data.sizeintegerRepository size in kilobytes as reported by GitHub.
data.starsintegerNumber of stargazers.
data.topicsstring[]Repository topic tags.
data.updatedAtstringLast metadata update timestamp (ISO 8601). Populated whenever the provider has data for the entity.
data.urlstringCanonical URL of the repository. Populated whenever the provider has data for the entity.
data.watchersintegerNumber of watchers.
foundbooleanWhether a repository was found for the requested URL.
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çãoUSDUS$ 0,0012
Preço /mil req.USDUS$ 1,20

Dúvidas frequentes

Sobre o endpoint Repositório da API para GitHub

O endpoint Repositório da AnyAPI para GitHub retorna dados de GitHub em JSON normalizado com uma chamada POST para /v1/run/github.repository. Obtenha os metadados de um repositório do GitHub pela URL (estrelas, forks, linguagem, tópicos, licença e datas). 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. Nos últimos 30 dias, 96,9% das chamadas ao endpoint Repositório da API para GitHub feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 2,0 segundos, em 32 chamadas medidas.

Custa a partir de US$ 1,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Você recarrega uma carteira em dólares e cada chamada desconta dela. Algumas requisições pagas pela carteira que falham geram cobranças de processamento, que repassamos pelo custo, sem margem; a resposta de erro mostra o valor cobrado.

Obtenha os metadados de um repositório do GitHub pela URL (estrelas, forks, linguagem, tópicos, licença e datas). A resposta é JSON normalizado, com o mesmo envelope que todo endpoint da AnyAPI retorna, então processar um segundo endpoint é só trocar a URL, e nada mais.

Nos últimos 30 dias, 96,9% das chamadas ao endpoint Repositório da API para GitHub feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 2,0 segundos, em 32 chamadas medidas. Estas são medições da própria AnyAPI sobre o tráfego que passa pelo gateway, recalculadas continuamente, e não uma meta de nível de serviço publicada.