# Repositories the linked installations can reach.

> Every linked installation's repositories, merged.
> https://koi.dog/docs/api/github/list-git-hub-installation-repos/

`GET /api/v1/github/installation/repos` · Scope: `read`

Read from GitHub with short-lived installation tokens, never the legacy token. Sorted by `fullName`, then `githubId`, in plain ASCII order; `search` matches part of `fullName`, ignoring ASCII case. `409 installation_required` without an active installation; `503 installation_unavailable` when GitHub cannot be asked or refuses for any of them (never a partial list).

## Query parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `1–200` | no | Page size. Default `50`. |
| `order` | `enum` | no | Sort by creation time, then ID. `desc` newest, `asc` oldest. One of `asc`, `desc`. Default `asc`. |
| `cursor` | `string` | no | Previous page’s `nextCursor`. Keep filters and order. At least 1 character. |
| `search` | `string` | no | 1 to 100 characters. |

## Response.

200 OK · `data`: `object[]`. Pass `nextCursor` as `cursor` when `hasMore` is true.

## Request.

```sh
curl https://api.koi.dog/api/v1/github/installation/repos \
    -H "Authorization: Bearer $KOIDOG_API_KEY"
```

```js
const res = await fetch("https://api.koi.dog/api/v1/github/installation/repos", {
  headers: {
    Authorization: `Bearer ${process.env.KOIDOG_API_KEY}`,
  },
});
console.log(await res.json());
```

```python
import os

import requests

r = requests.get(
    "https://api.koi.dog/api/v1/github/installation/repos",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_API_KEY']}",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

```json
{
  "data": [],
  "nextCursor": "string",
  "hasMore": false
}
```
