v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
server-statistics
enterprise-admin

Get GitHub Enterprise Server statistics

Returns aggregate usage metrics for your GitHub Enterprise Server 3.5+ instance for a specified time period up to 365 days.

To use this endpoint, your GitHub Enterprise Server instance must be connected to GitHub Enterprise Cloud using GitHub Connect. You must enable Server Statistics, and for the API request provide your enterprise account name or organization name connected to the GitHub Enterprise Server. For more information, see "Enabling Server Statistics for your enterprise" in the GitHub Enterprise Server documentation.

OAuth app tokens and personal access tokens (classic) need:

  • the read:enterprise scope if you connected your GitHub Enterprise Server to an enterprise account and enabled Server Statistics
  • the read:org scope if you connected your GitHub Enterprise Server to an organization account and enabled Server Statistics
get/enterprise-installation/{enterprise_or_org}/server-statistics

Path parameters

enterprise_or_orgstring required

The slug version of the enterprise name or the login of an organization.

Query parameters

date_startstring

A cursor, as given in the Link header. If specified, the query only searches for events after this cursor.

date_endstring

A cursor, as given in the Link header. If specified, the query only searches for events before this cursor.

Response

Response

server_idstring
collection_datestring
schema_versionstring
ghes_versionstring
host_namestring