INTEGRATION

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.

Get an API keySee pricing

Search GitHub

Repositories and issues

Users

Actions on your own account

1 weighted unit

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.

1 weighted unit

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.

1 weighted unit

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.

1 weighted unit

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.

1 weighted unit

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.

See the plans →

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.