100 free credits. No credit card required. Get a key

GitHub trending repositories API

The repositories on GitHub’s trending page, by language and period.

GET /v1/github/trending/repositories1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/github/trending/repositories?since=weekly",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"since": "weekly",
"language": null,
"spoken_language_code": null,
"items": [
{
"rank": 1,
"full_name": "backnotprop/plannotator",
"owner": "backnotprop",
"name": "plannotator",
"html_url": "https://github.com/backnotprop/plannotator",
"description": "The workspace to stay in the loop and on top of agents - shape, decide, plan, annotate, review code, share with team, an…",
"language": "TypeScript",
"stargazers_count": 15256,
"forks_count": 1461,
"stars_in_period": 1631,
"built_by": [
{
"login": "backnotprop",
"avatar_url": "https://avatars.githubusercontent.com/u/7244317?s=40&v=4"
},
{
"login": "claude",
"avatar_url": "https://avatars.githubusercontent.com/u/81847?s=40&v=4"
},
"… 3 more"
]
},
{
"rank": 2,
"full_name": "google-labs-code/stitch-skills",
"owner": "google-labs-code",
"name": "stitch-skills",
"html_url": "https://github.com/google-labs-code/stitch-skills",
"description": "A library of Agent Skills designed to work with the Stitch MCP server. Each skill follows the Agent Skills open standard…",
"language": "TypeScript",
"stargazers_count": 13287,
"forks_count": 1564,
"stars_in_period": 2619,
"built_by": [
{
"login": "JLXIA",
"avatar_url": "https://avatars.githubusercontent.com/u/43076783?s=40&v=4"
},
{
"login": "davideast",
"avatar_url": "https://avatars.githubusercontent.com/u/4570265?s=40&v=4"
},
"… 3 more"
]
},
"… 13 more"
]
}

Parameters

NameTypeDescription
languagequerystringProgramming language, as in github.com/trending/<language> (python, typescript, c++).
sincequery"daily" | "weekly" | "monthly"daily (default), weekly or monthly. One of daily, weekly, monthly.
spoken_language_codequerystringSpoken language of the README (ISO 639-1, e.g. en).
Response fields

200 with a GitHubTrendingReposResponse, in GitHub’s own REST v3 objects.

FieldTypeDescription
since"daily" | "weekly" | "monthly"
languagestring | null
spoken_language_codestring | null
itemsGitHubTrendingRepo[]
Status codes
StatusMeaning
200Trending repositories, ranked.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404No public GitHub user, repository or issue by that name.
429Too many requests. Wait for Retry-After seconds.
503GitHub is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

GitHub is a trademark of GitHub, Inc. We are not affiliated with or endorsed by GitHub.