GitHub trending repositories API
The repositories on GitHub’s trending page, by language and period.
GET /v1/github/trending/repositories1 credit per callRefunded on failureimport 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
| Name | Type | Description |
|---|---|---|
languagequery | string | Programming 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_codequery | string | Spoken language of the README (ISO 639-1, e.g. en). |
Response fields
200 with a GitHubTrendingReposResponse, in GitHub’s own REST v3 objects.
| Field | Type | Description |
|---|---|---|
since | "daily" | "weekly" | "monthly" | |
language | string | null | |
spoken_language_code | string | null | |
items | GitHubTrendingRepo[] |
Status codes
| Status | Meaning |
|---|---|
200 | Trending repositories, ranked. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No public GitHub user, repository or issue by that name. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | GitHub 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.