---
title: "List labels for a repository"
method: GET
path: "/repos/{owner}/{repo}/labels"
tags: ["issues"]
---

# List labels for a repository

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

Lists all labels for a repository.

## Path parameters

- `owner` string, required
- `repo` string, required

## Query parameters

- `per_page` integer
- `page` integer

## Response `200`

Response

- Label[]
  - `id` integer, required — Unique identifier for the label.
  - `node_id` string, required
  - `url` string, uri, required — URL for the label
  - `name` string, required — The name of the label.
  - `description` string, nullable, required — Optional description of the label, such as its purpose.
  - `color` string, required — 6-character hex code, without the leading #, identifying the color
  - `default` boolean, required — Whether this label comes by default in a new repository.
  - `archived_at` string, date-time, nullable, required — Timestamp indicating when the label was archived, or `null` if it has not been archived.
  - `archived_by` SimpleUser, required — A GitHub user.
    - `name` string, nullable
    - `email` string, nullable
    - `login` string, required
    - `id` integer, required
    - `node_id` string, required
    - `avatar_url` string, uri, required
    - `gravatar_id` string, nullable, required
    - `url` string, uri, required
    - `html_url` string, uri, required
    - `followers_url` string, uri, required
    - `following_url` string, required
    - `gists_url` string, required
    - `starred_url` string, required
    - `subscriptions_url` string, uri, required
    - `organizations_url` string, uri, required
    - `repos_url` string, uri, required
    - `events_url` string, required
    - `received_events_url` string, uri, required
    - `type` string, required
    - `site_admin` boolean, required
    - `starred_at` string
    - `user_view_type` string

## Other responses

- `404` — Resource not found

## Changes

- **2026-09-16** (2022-11-28) `a2954a79ff13` — 2 info
  - added the required property `items/archived_at` to the response with the `200` status
  - added the required property `items/archived_by` to the response with the `200` status

[Change history](https://skmtc.dev/github/apis/enterprise-cloud/changes/repos/:owner/:repo/labels/get.md)

---

[API](https://skmtc.dev/github/apis/enterprise-cloud.md) · [All operations](https://skmtc.dev/github/apis/enterprise-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/github/apis/enterprise-cloud/revisions/668ad5094f58?raw)
