v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
billing

Get GitHub Advanced Security active committers for an enterprise

Gets the GitHub Advanced Security active committers for an enterprise per repository. The authenticated user must be an enterprise admin or billing manager.

Each distinct user login across all repositories is counted as a single Advanced Security seat, so the total_advanced_security_committers is not the sum of active_users for each repository.

The total number of repositories with committer information is tracked by the total_count field.

get/enterprises/{enterprise}/settings/billing/advanced-security

Path parameters

enterprisestring required

The slug version of the enterprise name.

Query parameters

advanced_security_product'code_security' | 'secret_protection'

The security product to get GitHub Advanced Security active committers for.

For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.

per_pageinteger

The number of results per page (max 100). For more information, see "Using pagination in the REST API."

pageinteger

The page number of the results to fetch. For more information, see "Using pagination in the REST API."

Response

Success

total_advanced_security_committersinteger
total_countinteger
maximum_advanced_security_committersinteger

The total number of GitHub Advanced Security licences required if all repositories were to enable GitHub Advanced Security

purchased_advanced_security_committersinteger

The total number of GitHub Advanced Security licences purchased

Example response

{
  "total_advanced_security_committers": 25,
  "total_count": 2,
  "maximum_advanced_security_committers": 4,
  "purchased_advanced_security_committers": 4,
  "repositories": [
    {
      "name": "octocat/Hello-World",
      "advanced_security_committers": 25,
      "advanced_security_committers_breakdown": [
        {
          "last_pushed_date": "2021-11-03",
          "last_pushed_email": "monalisa@github.com"
        }
      ]
    }
  ]
}