API · GitHub
GET /github/trending/repositories
Trending GitHub repositories today, this week or this month, by language.
| Request | GET /v1/github/trending/repositories |
| Operation id | github.trending.repositories |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Trending GitHub repositories today, this week or this month, by language.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
language | string | no | Programming language, as in github.com/trending/<language> (python, typescript, c++). |
since | "daily" | "weekly" | "monthly" | no | daily (default), weekly or monthly. One of daily, weekly, monthly. |
spoken_language_code | string | no | Spoken language of the README (ISO 639-1, e.g. en). |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Trending repositories, ranked. | GitHubTrendingReposResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | No public GitHub user, repository or issue by that name. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | GitHub is temporarily unavailable. Retryable; nothing was charged. | Error |
GitHubTrendingReposResponse fields
| Field | Type | Description |
|---|---|---|
since | "daily" | "weekly" | "monthly" | |
language | string | null | |
spoken_language_code | string | null | |
items | GitHubTrendingRepo[] |
Errors use one shape everywhere; see Errors for every code and what to do.