Use the REST API to get meta information about GitHub, including the IP addresses of GitHub services.
Note
Most endpoints use Authorization: Bearer <YOUR-TOKEN> and Accept: application/vnd.github+json headers, plus X-GitHub-Api-Version: 2026-03-10. Curl examples below omit these standard headers for brevity.
GET /
Get Hypermedia links to resources accessible in GitHub's REST API
Request:
curl -L \
-X GET \
https://api.github.com/
Response schema (Status: 200):
current_user_url: required, string, format: uri-templatecurrent_user_authorizations_html_url: required, string, format: uri-templatecode_search_url: required, string, format: uri-templatecommit_search_url: required, string, format: uri-templateemails_url: required, string, format: uri-templateemojis_url: required, string, format: uri-templateevents_url: required, string, format: uri-templatefeeds_url: required, string, format: uri-templatefollowers_url: required, string, format: uri-templatefollowing_url: required, string, format: uri-templategists_url: required, string, format: uri-templateissue_search_url: required, string, format: uri-templateissues_url: required, string, format: uri-templatekeys_url: required, string, format: uri-templatelabel_search_url: required, string, format: uri-templatenotifications_url: required, string, format: uri-templateorganization_url: required, string, format: uri-templateorganization_repositories_url: required, string, format: uri-templateorganization_teams_url: required, string, format: uri-templatepublic_gists_url: required, string, format: uri-templaterate_limit_url: required, string, format: uri-templaterepository_url: required, string, format: uri-templaterepository_search_url: required, string, format: uri-templatecurrent_user_repositories_url: required, string, format: uri-templatestarred_url: required, string, format: uri-templatestarred_gists_url: required, string, format: uri-templatetopic_search_url: string, format: uri-templateuser_url: required, string, format: uri-templateuser_organizations_url: required, string, format: uri-templateuser_repositories_url: required, string, format: uri-templateuser_search_url: required, string, format: uri-templateGET /meta
Returns meta information about GitHub, including a list of GitHub's IP addresses. For more information, see "About GitHub's IP addresses."
The API's response also includes a list of GitHub's domain names, and the public keys used by GitHub to sign commits made through the web UI.
The values shown in the documentation's response are example values. You must always query the API directly to get the latest values.
Note
This endpoint returns both IPv4 and IPv6 addresses. However, not all features support IPv6. You should refer to the specific documentation for each feature to determine if IPv6 is supported.
200 - OK
304 - Not modified
Request:
curl -L \
-X GET \
https://api.github.com/meta
Response schema (Status: 200):
verifiable_password_authentication: required, booleanssh_key_fingerprints: object:
SHA256_RSA: stringSHA256_DSA: stringSHA256_ECDSA: stringSHA256_ED25519: stringssh_keys: array of stringhooks: array of stringgithub_enterprise_importer: array of stringweb: array of stringapi: array of stringgit: array of stringpackages: array of stringpages: array of stringimporter: array of stringactions: array of stringactions_macos: array of stringcodespaces: array of stringdependabot: array of stringcopilot: array of stringcommit_signing_keys: array of stringdomains: object:
website: array of stringcodespaces: array of stringcopilot: array of stringpackages: array of stringstorage: array of stringactions: array of stringactions_inbound: object:
full_domains: array of stringwildcard_domains: array of stringartifact_attestations: object:
trust_domain: stringservices: array of stringGET /octocat
Get the octocat as ASCII art
accept (string)application/vnd.github+json is recommended.s (string)Request:
curl -L \
-X GET \
https://api.github.com/octocat \
-H "Accept: application/octocat-stream"
Response schema (Status: 200):
string
GET /versions
Get all supported GitHub API versions.
200 - OK
404 - Resource not found
Request:
curl -L \
-X GET \
https://api.github.com/versions
Response schema (Status: 200):
Array of string, format: date
GET /zen
Get a random sentence from the Zen of GitHub
Request:
curl -L \
-X GET \
https://api.github.com/zen \
-H "Accept: text/plain"
Response schema (Status: 200):
Same response schema as Get Octocat.