GET
GET / — GitHub API
GitHub token (required); https://api.github.com
GitHub APIGitHub API Root
- Base URL
- https://api.github.com
- Auth
- Authorization: Bearer <GITHUB_API_KEY>
- Last verified
- 2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 106 tokens · Vary: Accept
→ 106 tokens · Vary: Accept
Critical gotchas
GitHub recommends an Accept: application/vnd.github+json header and an explicit X-GitHub-Api-Version header.
Fine-grained tokens only authorize repositories and permissions selected when the token is created.
cURL
curl -X GET 'https://api.github.com/' \ -H "Authorization: Bearer $GITHUB_TOKEN" \ -H 'Accept: application/vnd.github+json' \ -H 'X-GitHub-Api-Version: 2026-03-10'
Parameters
No parameters.
Response 200 OK
{
"current_user_url": "string",
"current_user_authorizations_html_url": "string",
"code_search_url": "string",
"commit_search_url": "string",
"emails_url": "string",
"emojis_url": "string",
"events_url": "string",
"feeds_url": "string",
"followers_url": "string",
"following_url": "string",
"gists_url": "string",
"issue_search_url": "string",
"issues_url": "string",
"keys_url": "string",
"label_search_url": "string",
"notifications_url": "string",
"organization_url": "string",
"organization_repositories_url": "string",
"organization_teams_url": "string",
"public_gists_url": "string",
"rate_limit_url": "string",
"repository_url": "string",
"repository_search_url": "string",
"current_user_repositories_url": "string",
"starred_url": "string",
"starred_gists_url": "string",
"topic_search_url": "string",
"user_url": "string",
"user_organizations_url": "string",
"user_repositories_url": "string",
"user_search_url": "string"
} Get a free GitHub API key → sponsored Affiliate link - we may earn a commission, at no extra cost to you.