# Get a label

From **GitHub v3 REST API**.

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

Get a label

## Parameters

### `owner`

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

### `repo`

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

### `name`

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

## Responses

### `200`

Response

### `application/json`

- Type: `object`

Color-coded labels help you categorize and filter your issues (just like labels in Gmail).

```json
{
  "color": "f29513",
  "default": true,
  "description": "Something isn't working",
  "id": 208045946,
  "name": "bug",
  "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
  "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug"
}
```

```json
{"description":"Color-coded labels help you categorize and filter your issues (just like labels in Gmail).","properties":{"color":{"description":"6-character hex code, without the leading #, identifying the color","example":"FFFFFF","type":"string"},"default":{"example":true,"type":"boolean"},"description":{"example":"Something isn't working","nullable":true,"type":"string"},"id":{"example":208045946,"format":"int64","type":"integer"},"name":{"description":"The name of the label.","example":"bug","type":"string"},"node_id":{"example":"MDU6TGFiZWwyMDgwNDU5NDY=","type":"string"},"url":{"description":"URL for the label","example":"https://api.github.com/repositories/42/labels/bug","format":"uri","type":"string"}},"required":["id","node_id","url","name","description","color","default"],"title":"Label","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"}
```

## Request examples

### cURL

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