# List self-hosted runner groups for an organization

From **GitHub v3 REST API**.

`GET /orgs/{org}/actions/runner-groups`

Lists all self-hosted runner groups configured in an organization and inherited from an enterprise.
You must authenticate using an access token with the `admin:org` scope to use this endpoint.

## Parameters

### `org`

- Location: path
- Required: true
- Type: `string`

### `per_page`

- Location: query
- Required: false
- Type: `integer`
- Default: `30`

Results per page (max 100)

### `page`

- Location: query
- Required: false
- Type: `integer`
- Default: `1`

Page number of the results to fetch.

## Responses

### `200`

Response

### `application/json`

- Type: `object`

```json
{
  "runner_groups": [
    {
      "allows_public_repositories": true,
      "default": true,
      "id": 1,
      "inherited": false,
      "name": "Default",
      "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/1/runners",
      "visibility": "all"
    },
    {
      "allows_public_repositories": true,
      "default": false,
      "id": 2,
      "inherited": true,
      "name": "octo-runner-group",
      "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/runners",
      "selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/repositories",
      "visibility": "selected"
    },
    {
      "allows_public_repositories": true,
      "default": false,
      "id": 3,
      "inherited": false,
      "name": "expensive-hardware",
      "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/3/runners",
      "visibility": "private"
    }
  ],
  "total_count": 3
}
```

```json
{"properties":{"runner_groups":{"items":{"$ref":"#/components/schemas/runner-groups-org"},"type":"array"},"total_count":{"type":"number"}},"required":["total_count","runner_groups"],"type":"object"}
```

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/orgs/{org}/actions/runner-groups
```
