# Get all repository topics

From **GitHub v3 REST API**.

`GET /repos/{owner}/{repo}/topics`

Get all repository topics

## Parameters

### `owner`

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

### `repo`

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

### `page`

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

Page number of the results to fetch.

### `per_page`

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

Results per page (max 100)

## Responses

### `200`

Response

### `application/json`

- Type: `object`

A topic aggregates entities that are related to a subject.

```json
{
  "names": [
    "octocat",
    "atom",
    "electron",
    "api"
  ]
}
```

```json
{"description":"A topic aggregates entities that are related to a subject.","properties":{"names":{"items":{"type":"string"},"type":"array"}},"required":["names"],"title":"Topic","type":"object"}
```

### `404`

Resource not found

### `application/json`

- Type: `object`

Basic Error

```json
{"description":"Basic Error","properties":{"documentation_url":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"url":{"type":"string"}},"title":"Basic Error","type":"object"}
```

### `415`

Preview header missing

### `application/json`

- Type: `object`

```json
{"properties":{"documentation_url":{"type":"string"},"message":{"type":"string"}},"required":["message","documentation_url"],"type":"object"}
```

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/repos/{owner}/{repo}/topics
```
