---
ai:
  exclude: true
search:
  tags:
    - Label
    - GET
seo:
  description: >-
    Return labels related to the given label name sorted by… Reference for the
    GET /rest/api/label/{labelName}/related endpoint in the Confluence Data
    Center API.
sidebar:
  label: Get related labels, currently returning global labels only.
  badge: GET
title: Get related labels, currently returning global labels only.
type: openapi-operation
---
Return labels related to the given label name sorted by frequency of use in descending order,
with a specified limit of results. The current process for identifying related labels solely
examines global labels, but it may change in the future.

Example request URI's:
`https://example.com/confluence/rest/api/label/test_label_name/related`
`https://example.com/confluence/rest/api/label/my:test_label_name/related?limit=200`

`GET /rest/api/label/{labelName}/related`

**Responses**

- `200` — Return a JSON representation of related labels to the given label name
- `400` — Return a bad request error if the given label name is invalid
- `404` — Return a not found error if the given label name is not found

Response example, 200:

```json
{
  "prefix": "my",
  "name": "label",
  "id": "1234",
  "label": "string"
}
```
