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
--url followed by the full path as the value. The full path is a URL that includes the base URL for the GitHub REST API (https://api.github.com) and the path of the endpoint, like this: https://api.github.com/PATH.
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 } }\"}" 
Discussions

How can I get all the information from the GitHub API
I have one question. I'm making GET request with vanilla JavaScript on a public GitHub API, and I'm getting a response, but not the full information on a single user. How can I get all the informat... More on stackoverflow.com
🌐 stackoverflow.com
How to get a website link from github API? - Stack Overflow
Is there a way to get the website link via github api? More on stackoverflow.com
🌐 stackoverflow.com
Using the GitHub API to search an organization
Yep. According to GitHub API docs, searching is an option. https://docs.github.com/en/rest/search Combine it with the Repositories API to then iterate over all the ones you want. Do note there the limitations of how many records are returned and the rate limit of the requests and plan your code appropriately. More on reddit.com
🌐 r/github
1
2
November 24, 2022
Creating release with api
Release asset upload - https://docs.github.com/en/free-pro-team@latest/rest/releases/assets?apiVersion=2022-11-28 I also recommend you try Bing Chat’s generative ai with a prompt “show me c# code to upload a release asset to github” https://www.bing.com/chat Side note… the GitHub CLI is another approach… https://cli.github.com/manual/gh_release More on reddit.com
🌐 r/github
1
1
September 5, 2023
People also ask

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
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
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
🌐
GitHub
docs.github.com › en › rest › quickstart
Quickstart for GitHub REST API - GitHub Docs
Make a request using the GitHub CLI api subcommand, followed by the path. Use the --method or -X flag to specify the method. For more information, see the GitHub CLI api documentation.
🌐
GitHub
docs.github.com › en › rest › users › users
REST API endpoints for users - GitHub Docs
Use the Link header to get the URL for the next page of users. This endpoint works with the following fine-grained token types: ... The fine-grained token does not require any permissions.
🌐
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 ...
Find elsewhere
🌐
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 › 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" }'
🌐
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
🌐
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 › meta › meta
REST API endpoints for meta data - GitHub Docs
Get Hypermedia links to resources accessible in GitHub's REST API · This endpoint works with the following fine-grained token types: ... The fine-grained token does not require any permissions. This endpoint can be used without authentication if only public resources are requested. ... curl -L \ -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/ ... { "current_user_url": "https://api.github.com/user", "current_user_authorizations_html_url": "https://github.com/settings/connections/applications{/client_id}", "code_search_url": "https://ap
🌐
LoginRadius
loginradius.com › home
Introduction to Github APIs
February 17, 2026 - Example :- curl https://api.github.com/devkapilbansal/following/KapilBansal ... If you provide an authenticated token, you don't need to provide a username in the endpoints mentioned above. By providing the token, you can create repositories/gists, comment on pull requests/issues, and all other tasks that you can perform from the Web Interface. You can get a token by going to Personal access tokens and clicking on Generate new token.
🌐
Merge.dev
merge.dev › blog › github-get-repositories
How to GET repositories using the GitHub API in Python
March 11, 2024 - import requests # At the top we can construct the request we want to make GITHUB_BASE_URL = 'https://api.github.com' org_name = 'Netflix' organization_repositories_url = f"{GITHUB_BASE_URL}/orgs/{org_name}/repos" After that, we can use our requests library to make a GET request to the URL we constructed to fetch information about Netflix’s repositories.
🌐
GitHub
docs.github.com › en › rest › pages › pages
REST API endpoints for GitHub Pages - GitHub Docs
curl -L \ -X POST \ -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/builds ...
Top answer
1 of 1
1

For each user, you receive a url for more details api. In your example, the first user has

{
  ...
  "url": "https://api.github.com/users/mojombo",
  ...
},

Or just follow the schema https://api.github.com/users/{username} If you call this url (try), you will get the twitter account and more.

{
  "login": "mojombo",
  "id": 1,
  "node_id": "MDQ6VXNlcjE=",
  "avatar_url": "https://avatars.githubusercontent.com/u/1?v=4",
  "gravatar_id": "",
  "url": "https://api.github.com/users/mojombo",
  "html_url": "https://github.com/mojombo",
  "followers_url": "https://api.github.com/users/mojombo/followers",
  "following_url": "https://api.github.com/users/mojombo/following{/other_user}",
  "gists_url": "https://api.github.com/users/mojombo/gists{/gist_id}",
  "starred_url": "https://api.github.com/users/mojombo/starred{/owner}{/repo}",
  "subscriptions_url": "https://api.github.com/users/mojombo/subscriptions",
  "organizations_url": "https://api.github.com/users/mojombo/orgs",
  "repos_url": "https://api.github.com/users/mojombo/repos",
  "events_url": "https://api.github.com/users/mojombo/events{/privacy}",
  "received_events_url": "https://api.github.com/users/mojombo/received_events",
  "type": "User",
  "site_admin": false,
  "name": "Tom Preston-Werner",
  "company": "@chatterbugapp, @redwoodjs, @preston-werner-ventures ",
  "blog": "http://tom.preston-werner.com",
  "location": "San Francisco",
  "email": null,
  "hireable": null,
  "bio": null,
  "twitter_username": "mojombo",
  "public_repos": 62,
  "public_gists": 62,
  "followers": 22447,
  "following": 11,
  "created_at": "2007-10-20T05:24:19Z",
  "updated_at": "2021-03-18T22:50:53Z"
}
🌐
Apify
blog.apify.com › python-github-api
How to use the GitHub API in Python
August 25, 2023 - Remember to check the right boxes while generating tokens to perform different actions with the repo. The base URL is this: https://api.github.com/. Let’s retrieve some data using a GET request in Python.
🌐
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 - The base url is https://api.github.com. We improve it further according to what we need. This is added to the base URL when we want list of repositories for an Authenticated User · You will find the above type of instructions in the documentation. Now lets learn how to read it. The first word tells you what type of request you need to make, whether it is POST, GET or DELETE.
🌐
GitHub
docs.github.com › en › rest › repos › contents
REST API endpoints for repository contents - GitHub Docs
To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download. ... Between 1-100 MB: Only the raw or object custom media types are supported. Both will work as normal, except that when using the object media type, the content field will be an empty string and the encoding field will be "none". To get the contents of these larger files, use the raw media type.