---
title: "Get a label"
method: GET
path: "/repos/{owner}/{repo}/labels/{name}"
tags: ["issues"]
---

# Get a label

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

Gets a label using the given name.

## Path parameters

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

## Response `200`

Response

- Label — Color-coded labels help you categorize and filter your issues (just like labels in Gmail).
  - `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.

## Other responses

- `404` — Resource not found

---

[API](https://skmtc.net/github/apis/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/versions/80850db290cd/schema)
