GitHub repository API
One public repository in GitHub’s REST repository object.
GET /v1/github/repos/{owner}/{repo}1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/github/repos/facebook/react",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "repo": { "id": 10270250, "name": "react", "full_name": "react/react", "owner": { "login": "react", "id": 102812, "node_id": "MDEyOk9yZ2FuaXphdGlvbjEwMjgxMg==", "avatar_url": "https://avatars.githubusercontent.com/u/102812?v=4", "html_url": "https://github.com/react", "type": "Organization", "site_admin": false, "gravatar_id": "", "url": "https://api.github.com/users/react", "followers_url": "https://api.github.com/users/react/followers", "following_url": "https://api.github.com/users/react/following{/other_user}", "gists_url": "https://api.github.com/users/react/gists{/gist_id}", "starred_url": "https://api.github.com/users/react/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/react/subscriptions", "organizations_url": "https://api.github.com/users/react/orgs", "repos_url": "https://api.github.com/users/react/repos", "events_url": "https://api.github.com/users/react/events{/privacy}", "received_events_url": "https://api.github.com/users/react/received_events", "user_view_type": "public" }, "private": false, "html_url": "https://github.com/react/react", "description": "The library for web and native user interfaces.", "fork": false, "homepage": "https://react.dev", "language": "JavaScript", "stargazers_count": 252886, "watchers_count": 252886, "forks_count": 51803, "open_issues_count": 1596, "subscribers_count": 6620, "topics": [ "declarative", "frontend", "… 4 more" ], "license": { "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit", "node_id": "MDc6TGljZW5zZTEz" }, "default_branch": "main", "archived": false, "created_at": "2013-05-24T16:15:54Z", "updated_at": "2026-11-25T04:57:06Z", "pushed_at": "2026-11-25T00:22:06Z", "size": 1157751, "node_id": "MDEwOlJlcG9zaXRvcnkxMDI3MDI1MA==", "…": "62 more fields" }}Parameters
| Name | Type | Description |
|---|---|---|
ownerpath · required | string | Repository owner (user or organisation). Example: vercel. |
repopath · required | string | Repository name. Example: next.js. |
Response fields
200 with a GitHubRepoResponse, in GitHub’s own REST v3 objects.
| Field | Type | Description |
|---|---|---|
repo | GitHubRepo |
Status codes
| Status | Meaning |
|---|---|
200 | The repository. |
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.