What is the 'GHES admin stats' API endpoint and what data does it provide?
Select an answer to reveal the explanation.
Short Explanation and Infographic
The admin stats API is your GHES census endpoint. Hit it and you get total counts: repos, users, orgs, issues, PRs, comments — great for capacity planning, license auditing, and reporting to management on the scale of your GitHub usage.
Full explanation below image
Full Explanation
The GitHub Enterprise Server Admin Stats API endpoint (/api/v3/enterprise/stats/{type}) provides aggregate statistics about the GHES instance. Available stat types: (1) /all — comprehensive counts across all categories. (2) /repos — total repositories, root repos, forks, pushed today, wikis. (3) /users — admin users, suspended users, total users. (4) /orgs — total organizations, disabled orgs, team count, member count. (5) /gists — public/private gist counts. (6) /issues — open/closed issue counts. (7) /comments — commit, issue, PR comment counts. (8) /pulls — merged, mergeable, unmergeable PR counts. This data is accessible to site administrators and is useful for: license compliance checking, capacity planning, usage reporting, and understanding the growth of the GHES instance over time.