API para GitHub: Repositórios em alta
Liste os repositórios do GitHub Trending (posição, estrelas, estrelas ganhas hoje, linguagem e descrição), com filtro por linguagem e janela de tempo.
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"repos": [
{
"description": "A short example description of this item.",
"forks": 42,
"fullName": "Alex Rivera",
"language": "en",
"name": "Example title",
"owner": "Alex Rivera",
"rank": 1,
"stars": 5,
"starsToday": 5,
"url": "https://example.com/page"
}
],
"since": "example"
},
"found": true,
"reason": "not_found"
}interface GithubTrendingRepositoriesResponse {
data: {
repos: {
description: string;
forks: number;
fullName: string;
language: string;
name?: string;
owner?: string;
rank: number;
stars: number;
starsToday: number;
url: string;
}[];
since?: 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.trending_repositories \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"language":"python","since":"daily"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| language | string | "python"Filtra por linguagem de programação (ex.: "go", "typescript"). Omita para todas as linguagens. |
| since | enum | "daily"Janela de tendência. |
| Resposta | ||
| data | object | |
| data.repos | object[] | Populated whenever the provider has data for the entity. |
| data.repos[].description | string | |
| data.repos[].forks | integer | |
| data.repos[].fullName | string | Populated whenever the provider has data for the entity. |
| data.repos[].language | string | |
| data.repos[].name | string | Repository short name (without owner). |
| data.repos[].owner | string | Login of the repository owner (user or organization). |
| data.repos[].rank | integer | |
| data.repos[].stars | integer | |
| data.repos[].starsToday | integer | |
| data.repos[].url | string | Populated whenever the provider has data for the entity. |
| data.since | string | Trending window the listing was read for (daily, weekly, or monthly). |
| 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 Repositórios em alta da API para GitHub
O endpoint Repositórios em alta da AnyAPI para GitHub retorna dados de GitHub em JSON normalizado com uma chamada POST para /v1/run/github.trending_repositories. Liste os repositórios do GitHub Trending (posição, estrelas, estrelas ganhas hoje, linguagem e descrição), com filtro por linguagem e janela de tempo. 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, 100,0% das chamadas ao endpoint Repositórios em alta da API para GitHub feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 5,9 segundos, em 926 chamadas medidas.