The REST API is now versioned. For more information, see "About API versioning."
REST API endpoints for admin stats
Use the REST API to retrieve a variety of metrics about your installation.
About admin stats
These endpoints are only available to authenticated site administrators. Normal users will receive a 404 response.
Note
These endpoints only support authentication using a personal access token (classic). For more information, see Managing your personal access tokens.
Get all statistics
Fine-grained access tokens for "Get all statistics"
This endpoint does not work with GitHub App user access tokens, GitHub App installation access tokens, or fine-grained personal access tokens.
HTTP response status codes for "Get all statistics"
| Status code | Description |
|---|---|
200 | OK |