This version of GitHub Enterprise was discontinued on 2021-06-09. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.
Meta
The Meta API returns meta information about GitHub Enterprise Server including the IP addresses of GitHub Enterprise Server services.
GitHub API Root
Get Hypermedia links to resources accessible in GitHub's REST API
get /
Code samples
Shell
curl \
-H "Accept: application/vnd.github.v3+json" \
http(s)://{hostname}/api/v3/JavaScript (@octokit/core.js)
await octokit.request('GET /')
Response
Status: 200 OK
Notes
get /meta
Code samples
Shell
curl \
-H "Accept: application/vnd.github.v3+json" \
http(s)://{hostname}/api/v3/metaJavaScript (@octokit/core.js)
await octokit.request('GET /meta')
Response
Status: 200 OK
{
"verifiable_password_authentication": true,
"packages": [
"192.30.252.0/22"
],
"dependabot": [
"54.158.161.132"
],
"installed_version": "2.21.0"
}
Not modified
Status: 304 Not Modified
Notes
Get Octocat
Get the octocat as ASCII art
get /octocat
Parameters
| Name | Type | In | Description |
|---|---|---|---|
accept |
string | header |
Setting to |
s |
string | query |
The words to show in Octocat's speech bubble |
Code samples
Shell
curl \
-H "Accept: application/vnd.github.v3+json" \
http(s)://{hostname}/api/v3/octocatJavaScript (@octokit/core.js)
await octokit.request('GET /octocat')
Response
Status: 200 OK
Notes
Get the Zen of GitHub
Get a random sentence from the Zen of GitHub
get /zen
Code samples
Shell
curl \
-H "Accept: application/vnd.github.v3+json" \
http(s)://{hostname}/api/v3/zenJavaScript (@octokit/core.js)
await octokit.request('GET /zen')
Response
Status: 200 OK
