---
ai:
  exclude: true
search:
  tags:
    - Content Labels
    - GET
seo:
  description: >-
    Returns the list of labels on a piece of Content. Example… Reference for the
    GET /rest/api/content/{id}/label endpoint in the Confluence Data Center API.
sidebar:
  label: Get labels
  badge: GET
title: Get labels
type: openapi-operation
---
Returns the list of labels on a piece of Content. Example request URI(s): 

- `http://example.com/confluence/rest/api/content/1234/label`
- `http://example.com/confluence/rest/api/content/1234/label?prefix=global&start=0&limit=200`

`GET /rest/api/content/{id}/label`

**Responses**

- `200` — returns a JSON representation of the existing labels on the content with the given id
- `404` — Returned if there is no content with the given id, or if the calling user does not have permission to view the content.

Response example, 200:

```json
{
  "results": [
    {
      "prefix": "my",
      "name": "label",
      "id": "1234",
      "label": "string"
    }
  ],
  "start": 25,
  "limit": 25,
  "size": 25,
  "_links": {
    "base": "http://localhost:8085/rest/api",
    "self": "http://localhost:8085/rest/api",
    "context": "http://localhost:8085/rest/api",
    "next": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=50",
    "prev": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=0"
  }
}
```
