Note: Server Statistics is in public beta and subject to change.
You can request up to 365 days of metrics in a single Server Statistics REST API request. This data, which includes aggregate metrics on repositories, issues, and pull requests, can help you anticipate the needs of your organization, understand how your team works, and show the value you get from GitHub Enterprise Server. For a list of the metrics collected, see "Server Statistics data collected."
Before you can use the Server Statistics REST API, you must enable Server Statistics. For more information, see "Enabling Server Statistics for your enterprise."
For more information about using the REST API to request server statistics, see "Get GitHub Enterprise Server statistics" in the GitHub Enterprise Cloud REST API documentation.