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

# Get a single label

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

## Request

- Base URL: `https://demo.gitea.com/api/v1`
- URL: `https://demo.gitea.com/api/v1/repos/{owner}/{repo}/labels/{id}`
- Auth: one of:
  - HTTP basic
  - API key in query parameter `token`
  - API key in query parameter `access_token`
  - API key in header `Authorization`
  - API key in query parameter `sudo`
  - API key in header `Sudo`
  - API key in header `X-GITEA-OTP`
- TypeScript: <https://skmtc.dev/gitea/apis/gitea-api/docs/repos/:owner/:repo/labels/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `owner` string, required
- `repo` string, required
- `id` integer, required

## Response `200`

Label

- Label: Label a label to an issue or a pr
  - `color` string
  - `description` string: Description provides additional context about the label's purpose
  - `exclusive` boolean
  - `id` integer: ID is the unique identifier for the label
  - `is_archived` boolean
  - `name` string: Name is the display name of the label
  - `url` string: URL is the API endpoint for accessing this label

## Other responses

- `default`: APIError is error format response

## Changes

- **2026-10-28** `7ef50c4c527f`: 1 info
  - removed the non-success response with the status `404`

[Operation history](https://skmtc.dev/gitea/apis/gitea-api/changes/repos/:owner/:repo/labels/:id/get.md)

---

[API](https://skmtc.dev/gitea/apis/gitea-api.md) - [All operations](https://skmtc.dev/gitea/apis/gitea-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitea/apis/gitea-api/revisions/7ef50c4c527f?raw)
