Bearer logo
GitHub API logo

GitHub API


API documentation

Developer website

Incorrect or missing information? Help us

What is the GitHub API?

GitHub is a development software, that provides hosting for software using Git as version control, as well as its own features. Used by millions of developers on a daily basis, the company has been acquired by Microsoft on 2018. The GitHub API gives access to a wide range of methods, that developers can include in their development process.

How to use the GitHub API?

// npm install @bearer/node
.auth('AUTH_ID') // Check the code example below on how to generate access tokens
.then(({ data }) => console.log(data))
.catch(e => console.log(e))
// npm install @bearer/node
.auth('AUTH_ID') // Check the code example below on how to generate access tokens
.put('/user/starred/bearer/bearer', { headers: { Content-Length: 0}})
.then(({ data }) => console.log(data))
.catch(e => console.log(e))
<script src=""></script>
<button class="btn btn-primary" onclick="myConnectButton()">
Connect to GitHub
const bearerClient = bearer('YOUR_BEARER_PUB_KEY')
function myConnectButton() {
.then(({ authId }) => {
// Use this authId like bearer.auth(authId).get(..
console.log('AUTH_ID for this user', authId)

Start using the GitHub API

Bearer provides a universal API client to call any GitHub endpoints. It takes care of API authentication, credentials management, and monitoring out-of-the-box.

Available in Node.js, Ruby, Python, and PHP

Sign up with Email

How to get a GitHub API Key?

  1. Sign in to your GitHub account
  2. In your account settings, open the Developer settings section
  3. Click on "New GitHub App"
  4. Fill the form with application details
  5. When asking for "User authorization callback URL", use the following
  6. Select the permissions you want to have access to
  7. That's it!

GitHub API Rate Limits

The GitHub API has a rate limit of 5000 requests per hour per authenticated user. Unauthenticated requests have a different limit of 60 requests per hour (source.

X-RateLimit-Limite.g. 5000
The applicable rate limit for that user.
X-RateLimit-Remaininge.g. 4999
The remaining requests available for the relevant time window.
X-RateLimit-Resete.g. 1372700873
The time at which the current rate limit window resets in UTC epoch seconds.

GitHub API Versions

versionstatusrelease date
GitHub GraphQL API
September 14th, 2016
REST API (recommended)
June 20th, 2011
Unsupported since June 12, 2012.
Unsupported since June 12, 2012.
March 12th, 2008

Start integrating the GitHub API for free!

Universal API client

Query the GitHub API and hundreds more APIs using a single API client.

Identity Management

From API credentials to OAuth dance, token and refresh token, Bearer manages it all.

Real-time Monitoring

Get a complete overview of your API usage with metrics and in-depth logs, find errors anddebug in a snap.

Bearer - Integrations built in minutes, Monitored in real-time


Docs & Help


Bearer is on TwitterBearer is on GitHubBearer is on FacebookBearer is on LinkedIn
© Copyright Bearer 2019
Bearer uses cookies to make its website easier to use. Learn more about cookies.