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.

Answer from VonC on Stack Overflow
🌐
GitHub
docs.github.com › rest › guides › getting-started-with-the-rest-api
Getting started with the REST API - GitHub Docs
Doing so will make future upgrades of the API easier for developers. All URLs are expected to be proper RFC 6570 URI templates. You can then expand these templates using something like the uri_template gem: >> tmpl = URITemplate.new('/notifications{?since,all,participating}') >> tmpl.expand => "/notifications" >> tmpl.expand all: 1 => "/notifications?all=1" >> tmpl.expand all: 1, participating: 1 => "/notifications?all=1&participating=1" The GitHub REST API limits the number of requests you can make within a given time period.
GitHub Docs
Get started, troubleshoot, and make the most of GitHub. Documentation for new users, developers, administrators, and all of GitHub's products.
REST API
Create integrations, retrieve data, and automate your workflows with the GitHub REST API.
Quickstart
For more information, see the GitHub CLI version of this page. If these options are not possible, consider using another CLI service to store your token securely. Use the curl command to make your request. Pass your token in an Authorization header. Replace YOUR-TOKEN with your token. ... curl --request GET \ --url "https://api...
Permissions for fine-grained PATs
For each permission granted to a fine-grained personal access token, these are the REST API endpoints that the app can use.
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 } }\"}" 
People also ask

Is the GitHub API free?
Yes, the GitHub API is free with rate limits, though higher usage levels may require authentication and paid plans for extended access.
🌐
hevodata.com
hevodata.com › home › learn › data strategy
Getting Started on How to Use Github REST API
How can I use the GitHub API?
You can use the GitHub API by sending HTTP requests to its endpoints (e.g., using curl or libraries like requests in Python) to interact with repositories, issues, users, etc.
🌐
hevodata.com
hevodata.com › home › learn › data strategy
Getting Started on How to Use Github REST API
How do I get users from GitHub API?
To get users from the GitHub API, send a GET request to the /users endpoint (e.g., https://api.github.com/users), or for specific users, use /users/{username}.
🌐
hevodata.com
hevodata.com › home › learn › data strategy
Getting Started on How to Use Github REST API
🌐
GitHub
docs.github.com › en › rest › users › users
REST API endpoints for users - GitHub Docs
curl -L \ -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/user ... { "login": "octocat", "id": 1, "node_id": "MDQ6VXNlcjE=", "avatar_url": "https://github.com/images/error/octocat_happy.gif", ...
🌐
Hevo
hevodata.com › home › learn › data strategy
Getting Started on How to Use Github REST API
January 9, 2026 - However, you can use several third-party libraries that support the programming language you prefer. You can use the Base URL https://api.GitHub.com to obtain all the accessible API links that can be changed along with the respective keywords ...
🌐
GitHub
docs.github.com › en › rest
GitHub REST API documentation - GitHub Docs
You can authenticate to the REST API to access more endpoints and have a higher rate limit. ... The GitHub REST API is fully described in an OpenAPI compliant document.
🌐
GitHub Developer
octokit.github.io › routes › cache › api.github.com › v3 › index.html
GitHub API v3 | GitHub Developer Guide
curl 'https://api.github.com/user/repos?page=2&per_page=100' Note that page numbering is 1-based and that omitting the ?page parameter will return the first page. For more information on pagination, check out our guide on Traversing with Pagination.
🌐
LoginRadius
loginradius.com › home
Introduction to Github APIs
February 17, 2026 - Request type: POST API endpoint: /user/{repos} Required data: name · Example :- curl -H "Authorization: token ${token}" -d '{"name":"Github API Testing"}' https://api.github.com/user/repos
Find elsewhere
🌐
GitHub
docs.github.com › en › rest › quickstart
Quickstart for GitHub REST API - GitHub Docs
For more information, see the GitHub CLI version of this page. If these options are not possible, consider using another CLI service to store your token securely. Use the curl command to make your request. Pass your token in an Authorization header. Replace YOUR-TOKEN with your token. ... curl --request GET \ --url "https://api.github.com/repos/octocat/Spoon-Knife/issues" \ --header "Accept: application/vnd.github+json" \ --header "Authorization: Bearer YOUR-TOKEN"
🌐
GitHub
docs.github.com › en › rest › authentication › authenticating-to-the-rest-api
Authenticating to the REST API - GitHub Docs
Some REST API endpoints for GitHub Apps and OAuth apps require you to use basic authentication to access the endpoint. You will use the app's client ID as the username and the app's client secret as the password. ... curl --request POST \ --url "https://api.github.com/applications/YOUR_CLIENT_ID/token" \ --user "YOUR_CLIENT_ID:YOUR_CLIENT_SECRET" \ --header "Accept: application/vnd.github+json" \ --header "X-GitHub-Api-Version: 2026-03-10" \ --data '{ "access_token": "ACCESS_TOKEN_TO_CHECK" }'
🌐
Code Snippet
codesnippet.io › github-api-tutorial
How To Use the GitHub API - Build a Simple Web App - Code Snippet
November 21, 2022 - Click here for a comprehensive list of available GitHub API endpoints. For today's example will make use of the GET /users/<username>/repos endpoint which will allow us to list all public repositories for the specified <username> parameter. This is a simple API endpoint for us to test the waters with. In fact, we can actually just paste the url ...
🌐
GitHub
docs.github.com › en › rest › pulls › pulls
REST API endpoints for pull requests - GitHub Docs
... curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/repos/OWNER/REPO/pulls ...
🌐
GitHub
docs.github.com › en › rest › pages › pages
REST API endpoints for GitHub Pages - GitHub Docs
curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/repos/OWNER/REPO/pages · Example response · Response schema · Status: 200 · { "url": ...
🌐
GitHub
docs.github.com › en › rest › repos › contents
REST API endpoints for repository contents - GitHub Docs
Otherwise, the API responds with an object describing the symlink itself. If the content is a submodule, the submodule_git_url field identifies the location of the submodule repository, and the sha identifies a specific commit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out the submodule at that specific commit. If the submodule repository is not hosted on github.com, the Git URLs (git_url and _links["git"]) and the github.com URLs (html_url and _links["html"]) will have null values.
🌐
GitHub
docs.github.com › en › rest › meta › meta
REST API endpoints for meta data - GitHub Docs
curl -L \ -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/ Example response · Response schema · Status: 200 · { "current_user_url": "https://api.github.com/user", "current_user_au...
🌐
Software Testing Help
softwaretestinghelp.com › home › github › github rest api tutorial – rest api support in github
GitHub REST API Tutorial - REST API Support In GitHub
April 1, 2025 - curl -X GET -u <UserName>:<Generated-Token>https://api.github.com/users/<user-name>/repos | grep -w clone_url
🌐
Public APIs
publicapis.io › home › development › github
GitHub API — API Key, Docs & Examples | PublicAPIs.io
Click "Generate token" and copy it immediately — it's shown only once. ... curl https://api.github.com/user/repos \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Accept: application/vnd.github+json"
🌐
Medium
medium.com › @ahmetbostanciklioglu › rest-api-endpoint-for-github-api-338dbec08106
Rest API endpoint for Github API. From scratch we will look at how to… | by Ahmet Bostanciklioglu | Medium
May 1, 2025 - From scratch we will look at how to read a GitHub API for repository. ... What is the REST API? REST (representational state transfer) is bridge between client (Application) and server to transfer data. In this blog we will learn get repository endpoint: ... We paste above url to search field in postman then send request to github server and we get response as below:
🌐
GitHub
docs.github.com › en › rest › repos › repos
REST API endpoints for repositories - GitHub Docs
curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/orgs/ORG/repos · Example response · Response schema · Status: 200 · [ { "id": 1296269, ...
🌐
Free APIs
free-apis.github.io
Free APIs
An open-source collection of free APIs for web developers.