🌐
GitHub Developer
octokit.github.io › routes › cache › api.github.com › v3 › index.html
GitHub API v3 | GitHub Developer Guide
By default, all requests to https://api.github.com receive the v3 version of the REST API.
🌐
GitHub
docs2.lfe.io › v3
GitHub API v3
By default, all requests receive the v3 version of the API. We encourage you to explicitly request this version via the Accept header. ... All API access is over HTTPS, and accessed from the api.github.com domain (or through yourdomain.com/api/v3/ for enterprise).
🌐
GitHub
github.com › topics › github-api-v3
github-api-v3 · GitHub Topics · GitHub
A visual arrangement of popular GitHub repositories that, based on the selected language tab, will update cards dynamically using live data that is fetched from GitHub using their GitHub API V3.
🌐
GitHub
developer.github.com › v3 › repos › contents
REST API endpoints for repository contents - GitHub Docs
Use the REST API to create, modify, and delete Base64 encoded content in a repository.
🌐
GitHub
github.blog › home › news & insights › the library › api v3: 190 methods to build on
API v3: 190 methods to build on - The GitHub Blog
June 11, 2024 - The entire v3 API is finally here! From commit comments to raw Git access and everything in between, this release wraps up the major development effort around the API. We…
🌐
GitHub
github.com › PyGithub › PyGithub
GitHub - PyGithub/PyGithub: Typed interactions with the GitHub API v3 · GitHub
Typed interactions with the GitHub API v3. Contribute to PyGithub/PyGithub development by creating an account on GitHub.
Author: PyGithub
🌐
Apis
apis.guru › apis › github.com › api.github.com
GitHub v3 REST API API | Api Directory
Documentation and specification of the GitHub v3 REST API API. Explore endpoints, methods, and integration options to use GitHub v3 REST API in your applications.
Find elsewhere
🌐
Stack Overflow
stackoverflow.com › questions › tagged › github-api-v3
Newest 'github-api-v3' Questions - Stack Overflow
github-api-v3 · github-api-v4 · Akash Dhiwar · 39 asked Aug 15, 2024 at 18:01 · -1 votes · 1 answer · 550 views · What happened? GItHub Octokit throws 401 error with GitHub App. Here is the code looks like import dotenv from 'dotenv' import fs from 'fs' import http from 'http' import { Octokit, App } from '... github ·
🌐
Pluralsight
pluralsight.com › blog › tech guides & tutorials
Using Fetch with Github API V3 | Pluralsight
August 14, 2020 - fetch('https://api.github.com/users/{YOUR_USERNAME}', { headers: { 'Accept' : 'application/vnd.github.v3+json' }}) .then(response => response.json()) //Converting the response to a JSON object .then( data => { const root = document.querySelector('#root'); root.innerHTML = ` <a href=`${data.html_url}`>Name: `${data.name}`</a> <p>Followers : `${data/followers}`</p> ` }) .catch( error => console.error(error));
🌐
GitHub
docs.github.com › rest › guides › getting-started-with-the-rest-api
Getting started with the REST API - GitHub Docs
HTTP/2 200 server: GitHub.com date: Thu, 04 Aug 2022 20:07:51 GMT content-type: application/json; charset=utf-8 cache-control: public, max-age=60, s-maxage=60 vary: Accept, Accept-Encoding, Accept, X-Requested-With etag: W/"7fceb7e8c958d3ec4d02524b042578dcc7b282192e6c939070f4a70390962e18" x-github-media-type: github.v3; format=json link: <https://api.github.com/repositories/1300192/issues?per_page=2&sort=updated&direction=asc&page=2>; rel="next", <https://api.github.com/repositories/1300192/issues?per_page=2&sort=updated&direction=asc&page=7409>; rel="last" access-control-expose-headers: ETag,
🌐
Medium
medium.com › analytics-vidhya › getting-started-with-github-api-dc7057e2834d
Getting Started with Github API. REST API v3 using Python | by Gaganpreet Kaur Kalsi | Analytics Vidhya | Medium
July 20, 2020 - Under scopes check all you want the API to have access to in your account. I checked all the boxes. Click Generate new token. Hurray! Your token has been generated. Copy the token and save it somewhere as it won’t be visible to you after this time. ... GET request — This request is made when you want to retrieve some information from the application (here it is Github).
Top answer
1 of 5
31

According to "API Enterprise 2.5":

All API endpoints—except Management Console API endpoints—are prefixed with the following URL:

https://hostname/api/v3/

But you need to authenticate:

Authentication

Your Enterprise installation's API endpoints accept the same authentication methods as the GitHub.com API. Specifically, you can authenticate yourself with OAuth tokens (which can be created using the Authorizations API) or basic authentication.

Every Enterprise API endpoint is only accessible to GitHub Enterprise site administrators, with the exception of the Management Console API, which is only accessible via the Management Console password.

2 of 5
15

TLTR; These are the endpoints

+----+------------------------------------------+--------------------------------+
|    |                Enterprise                |             GitHub             |
+----+------------------------------------------+--------------------------------+
| v3 | https://[YOUR_HOST]/api/v3               | https://api.github.com         |
| v4 | https://[YOUR_HOST]/api/graphql          | https://api.github.com/graphql |
+----+------------------------------------------+--------------------------------+

Examples

Here you have some examples in case you want to try them. You'll need to create an ACCESS_TOKEN

Enterprise

curl -H "Authorization: bearer [ACCESS_TOKEN]" https://[YOUR_HOST]/api/v3/organizations
curl -H "authorization: bearer [ACCESS_TOKEN]" https://[YOUR_HOST]/api/graphql -d "{\"query\": \"query { viewer { login } }\"}" 

GitHub

curl -H "Authorization: bearer [ACCESS_TOKEN]" https://api.github.com/organizations
curl -H "authorization: bearer [ACCESS_TOKEN]" https://api.github.com/graphql -d "{\"query\": \"query { viewer { login } }\"}" 
🌐
GitHub
github.blog › home › news & insights › the library › github api: moving on
GitHub API: Moving On - The GitHub Blog
January 4, 2019 - Versioning is done through a custom GitHub mime type. We’re currently planning for the first API v3 mime type version change due to some incompatible tweaks to the output JSON.
🌐
GitHub
developer.github.com › v3 › git › tags
REST API endpoints for Git tags - GitHub Docs
A Git tag is similar to a Git reference, but the Git commit that it points to never changes. Git tags are helpful when you want to point to specific releases. These endpoints allow you to read and write tag objects to your Git database on GitHub. The API only supports annotated tag objects, not lightweight tags.
🌐
Apidog
github.apidog.io
GitHub API Root - GitHub v3 REST API
GitHub v3 REST API · meta · GitHub API Root · GET · Get GitHub meta information · GET · Get Octocat · GET · Get all API versions · GET · Get the Zen of GitHub · GET · apps · Get the authenticated app · GET · Create a GitHub App from a manifest ·