GroundsocialDocs

API · GitHub

GET /github/trending/repositories

Trending GitHub repositories today, this week or this month, by language.

RequestGET /v1/github/trending/repositories
Operation idgithub.trending.repositories
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Trending GitHub repositories today, this week or this month, by language.

Query parameters

NameTypeRequiredDescription
languagestringnoProgramming language, as in github.com/trending/<language> (python, typescript, c++).
since"daily" | "weekly" | "monthly"nodaily (default), weekly or monthly. One of daily, weekly, monthly.
spoken_language_codestringnoSpoken language of the README (ISO 639-1, e.g. en).

Responses

StatusMeaningSchema
200Trending repositories, ranked.GitHubTrendingReposResponse
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404No public GitHub user, repository or issue by that name.Error
429Too many requests. Wait for Retry-After seconds.Error
503GitHub is temporarily unavailable. Retryable; nothing was charged.Error

GitHubTrendingReposResponse fields

FieldTypeDescription
since"daily" | "weekly" | "monthly"
languagestring | null
spoken_language_codestring | null
itemsGitHubTrendingRepo[]

Errors use one shape everywhere; see Errors for every code and what to do.