GitHub API
16 operations · unofficial · one upAPI key
Search repositories, issues, discussions and users, read repository, issue and contributor data, and act on an account with your own token.
Search GitHub
Search GitHub Repositories
Search repositories across GitHub with GitHub's search syntax (language, stars, topics, pushed dates). Returns parsed rows plus the rate-limit headers. Works without a token; pass your own for the higher limit.
Search GitHub Users
Search GitHub users and organizations by login, location, language, follower count and more. Returns login/id/type/avatar rows (follow with Get GitHub User for the full profile) plus the rate-limit headers.
Search GitHub Issues
Search issues and pull requests across all of GitHub with GitHub's search syntax. Returns parsed rows (author, repo, labels, comment count, reactions) plus the rate-limit headers so you can pace yourself. Works without a token (10 searches/min per IP); pass your own token for 30/min.
Search GitHub Discussions
Search GitHub Discussions across all repositories (GraphQL). Returns title, body, author, repository, category, comment count and the node id you need to reply, with cursor pagination. Requires your own GitHub token - GitHub's GraphQL API does not serve anonymous callers.
Get GitHub Trending Repositories
Fetch the github.com/trending page for the most-starred repos in a time window, optionally filtered by language. Pure HTTP (no browser). Returns full name, URL, description, language, total stars, stars this window, forks.
Repositories and issues
Get GitHub Repository
Fetch metadata (stars, forks, topics, license, dates) for a public GitHub repository via the REST API.
List GitHub Repository Contributors
List a repository's contributors ranked by commit count, paginated: login, id, type, contributions, profile URL. Plus the rate-limit headers.
List GitHub Repository Issues
List a repository's issues with state/label/date filters and pagination. Pull requests are filtered out by default. Returns parsed rows (author, labels, comment and reaction counts) plus the rate-limit headers.
List GitHub Issue Comments
List the comments on a GitHub issue or pull request, paginated: author, association (OWNER/MEMBER/CONTRIBUTOR/NONE), body, reaction count, timestamps. Plus the rate-limit headers.
Users
Get GitHub User
Fetch a GitHub user or organization's public profile: name, bio, company, location, follower/repo counts, avatar, Twitter handle, hireable flag. Plus the rate-limit headers. Works without a token; pass your own for 5,000 req/h.
Get GitHub User Commit Emails
Collect the public commit-author emails a GitHub user has pushed with, from their most recently updated repositories (noreply addresses dropped). One listing call plus one per repository scanned. Plus the rate-limit headers.
Actions on your own account
Post a GitHub Issue Comment
Post one comment on a GitHub issue or pull request as the supplied token's account. Returns the new comment id and URL. Bring your own GitHub token: a fine-grained PAT with the 'Issues' repository permission (write), plus 'Pull requests' (write) for a pull request, or a classic PAT with 'public_repo' (broad). The token is used for this one call, never stored; sent only to api.github.com. Never retried here, so a client retry can post a duplicate comment and bill twice: over the HTTP API, send an Idempotency-Key header and reuse it on every retry; MCP callers should check for an existing comment before retrying.
React to a GitHub Issue Comment
Add one of GitHub's eight reactions to an issue comment as the supplied token's account, and say whether that reaction already existed. Bring your own GitHub token: a fine-grained PAT with the 'Issues' repository permission (write), or a classic PAT with 'public_repo' (broad). The token is used for this one call, never stored; sent only to api.github.com.
Star or Unstar a GitHub Repository
Star or unstar a repository as the supplied token's account. Idempotent in both directions. Bring your own GitHub token: a fine-grained PAT with the 'Starring' user permission (write) and 'Metadata' repository permission (read), or a classic PAT with 'public_repo' (broad, prefer fine-grained). The token is used for this one call, never stored; sent only to api.github.com.
Follow or Unfollow a GitHub User
Follow or unfollow a GitHub user as the supplied token's account. Idempotent in both directions. Bring your own GitHub token: a fine-grained PAT with the 'Followers' user permission (write), or a classic PAT with 'user:follow' (broad). The token is used for this one call, never stored; sent only to api.github.com.
Check a GitHub Account's Health
Check whether a GitHub token still authenticates and whether its account has been suspended. Returns the account's login/id and a verdict (active / suspended / auth-expired / forbidden). Bring your own GitHub token: it is used for this one call, never stored; sent only to api.github.com.
GitHub API: frequently asked questions
What is the GitHub API on upAPI?
It is 16 operations you can call over HTTP: Search repositories, issues, discussions and users, read repository, issue and contributor data, and act on an account with your own token. Each operation is one POST request to api.upapi.io with your key in the X-Api-Key header and a JSON body, and has its own published request and response schema.
Is this the official GitHub API?
No. upAPI is an independent service, not affiliated with or endorsed by GitHub. These are upAPI operations about GitHub, with their own schemas and their own billing.
How much does the GitHub API cost?
Each GitHub call spends between 1 and 6 weighted units of your plan's monthly quota, depending on the operation. Each operation's own page states its weight. The pricing page has the plans.
Which GitHub data can I get, and do I need my own account?
Each operation's description says what it returns and what it needs. Some operations take the session cookies, token or password of your own GitHub account as an input, to act as that account (posting, following, messaging) or to read a signed-in view, and the operation's own page lists its required inputs, so check it before you call. You are responsible for following GitHub's terms for how you use the data.
How do I start calling the GitHub API?
Send your key in the X-Api-Key header. A free guest key is available without creating an account.
More from GitHub
Every operation above has its own page with the full request and response reference. The same operations also sit in the catalog by category.
Other integrations
upAPI is an independent service and is not affiliated with or endorsed by GitHub. GitHub and its logo are trademarks of their respective owners.