# Lizenzierung

Verwenden Sie die REST-API, um Lizenzierungsinformationen abzurufen.

> [!NOTE]
> Most endpoints use `Authorization: Bearer <YOUR-TOKEN>` and `Accept: application/vnd.github+json` headers, plus `X-GitHub-Api-Version: 2026-03-10`. Curl examples below omit these standard headers for brevity.

## Get license information

```
GET /enterprise/settings/license
```

### HTTP response status codes

- **200** - OK

### Code examples

#### Example

**Request:**

```curl
curl -L \
  -X GET \
  http(s)://HOSTNAME/api/v3/enterprise/settings/license
```

**Response schema (Status: 200):**

* `seats`: one of:
  * **string**
  * **integer**
* `seats_used`: integer
* `seats_available`: one of:
  * **string**
  * **integer**
* `kind`: string
* `days_until_expiration`: integer
* `expire_at`: string

## Get GitHub Advanced Security active committers for an enterprise

```
GET /enterprises/{enterprise}/settings/billing/advanced-security
```

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.

### Parameters

#### Headers

- **`accept`** (string)
  Setting to `application/vnd.github+json` is recommended.

#### Path and query parameters

- **`enterprise`** (string) (required)
  The slug version of the enterprise name.

- **`advanced_security_product`** (string)
  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.
  Can be one of: `code_security`, `secret_protection`

- **`per_page`** (integer)
  The number of results per page (max 100). For more information, see "Using pagination in the REST API."
  Default: `30`

- **`page`** (integer)
  The page number of the results to fetch. For more information, see "Using pagination in the REST API."
  Default: `1`

### HTTP response status codes

- **200** - Success

### Code examples

#### Example

**Request:**

```curl
curl -L \
  -X GET \
  http(s)://HOSTNAME/api/v3/enterprises/ENTERPRISE/settings/billing/advanced-security
```

**Response schema (Status: 200):**

* `total_advanced_security_committers`: integer
* `total_count`: integer
* `maximum_advanced_security_committers`: integer
* `purchased_advanced_security_committers`: integer
* `repositories`: required, array of objects:
  * `name`: required, string
  * `advanced_security_committers`: required, integer
  * `advanced_security_committers_breakdown`: required, array of objects:
    * `user_login`: required, string
    * `last_pushed_date`: required, string
    * `last_pushed_email`: required, string