# List app installations for an organization

From **GitHub v3 REST API**.

`GET /orgs/{org}/installations`

Lists all GitHub Apps in an organization. The installation count includes all GitHub Apps installed on repositories in the organization. You must be an organization owner with `admin:read` 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

#### Headers

##### `Link`

- Type: `string`

- Example: `<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"`

### `application/json`

- Type: `object`

```json
{
  "installations": [
    {
      "access_tokens_url": "https://api.github.com/app/installations/25381/access_tokens",
      "account": {
        "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4",
        "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
        "followers_url": "https://api.github.com/users/octo-org/followers",
        "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
        "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
        "gravatar_id": "",
        "html_url": "https://github.com/octo-org",
        "id": 6811672,
        "login": "octo-org",
        "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",
        "organizations_url": "https://api.github.com/users/octo-org/orgs",
        "received_events_url": "https://api.github.com/users/octo-org/received_events",
        "repos_url": "https://api.github.com/users/octo-org/repos",
        "site_admin": false,
        "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
        "type": "Organization",
        "url": "https://api.github.com/users/octo-org"
      },
      "app_id": 2218,
      "app_slug": "github-actions",
      "created_at": "2017-05-16T08:47:09.000-07:00",
      "events": [
        "deployment",
        "deployment_status"
      ],
      "has_multiple_single_files": true,
      "html_url": "https://github.com/organizations/octo-org/settings/installations/25381",
      "id": 25381,
      "permissions": {
        "deployments": "write",
        "metadata": "read",
        "pull_requests": "read",
        "statuses": "read"
      },
      "repositories_url": "https://api.github.com/installation/repositories",
      "repository_selection": "selected",
      "single_file_name": "config.yml",
      "single_file_paths": [
        "config.yml",
        ".github/issue_TEMPLATE.md"
      ],
      "suspended_at": null,
      "suspended_by": null,
      "target_id": 6811672,
      "target_type": "Organization",
      "updated_at": "2017-06-06T11:23:23.000-07:00"
    }
  ],
  "total_count": 1
}
```

```json
{"properties":{"installations":{"items":{"$ref":"#/components/schemas/installation"},"type":"array"},"total_count":{"type":"integer"}},"required":["total_count","installations"],"type":"object"}
```

## Request examples

### cURL

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