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).
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"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 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 30dcurl -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"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| url | string | "https://github.com/facebook/react"URL do repositório no GitHub (ex.: https://github.com/facebook/react). |
| Resposta | ||
| data | object | The repository record, or null when not found. |
| data.archived | boolean | Whether the repository is archived. |
| data.avatarUrl | string | Avatar image URL of the repository owner. |
| 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.defaultBranch | string | Name of the default branch. Populated whenever the provider has data for the entity. |
| data.description | string | Short repository description, or null if none. |
| data.fork | boolean | Whether the repository is a fork. |
| data.forks | integer | Number of forks. |
| data.fullName | string | Full repository name in owner/name form. Populated whenever the provider has data for the entity. |
| data.homepage | string | Project homepage URL, or null if none. |
| data.id | string | GitHub's numeric repository id, as a string. |
| data.language | string | Primary programming language, or null if undetected. |
| data.license | string | License name, or null if unlicensed. |
| data.name | string | Repository short name (without owner). Populated whenever the provider has data for the entity. |
| data.openIssues | integer | Count of open issues and pull requests. |
| data.owner | string | Login of the repository owner (user or organization). Populated whenever the provider has data for the entity. |
| data.private | boolean | Whether the repository is private. |
| data.profileUrl | string | GitHub profile URL of the repository owner. |
| data.pushedAt | string | Last push timestamp (ISO 8601). Populated whenever the provider has data for the entity. |
| data.size | integer | Repository size in kilobytes as reported by GitHub. |
| data.stars | integer | Number of stargazers. |
| data.topics | string[] | Repository topic tags. |
| data.updatedAt | string | Last metadata update timestamp (ISO 8601). Populated whenever the provider has data for the entity. |
| data.url | string | Canonical URL of the repository. Populated whenever the provider has data for the entity. |
| data.watchers | integer | Number of watchers. |
| found | boolean | Whether 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ção | USD | US$ 0,0012 |
| Preço /mil req. | USD | US$ 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.