---
ai:
  exclude: true
search:
  tags:
    - Space Label
    - GET
seo:
  description: >-
    Returns a paginated list of the most recent Labels… Reference for the GET
    /rest/api/space/{spaceKey}/labels/recent endpoint in the Confluence Data
    Center API.
sidebar:
  label: Get recent labels
  badge: GET
title: Get recent labels
type: openapi-operation
---
Returns a paginated list of the most recent Labels used by Content within the given Space. This includes Labels used by Pages, Blog Posts, and other Content types.

Example request URI:
`https://example.com/confluence/rest/api/space/TEST/labels/recent`

`GET /rest/api/space/{spaceKey}/labels/recent`

**Responses**

- `200` — returns a full JSON representation of a piece of content.
- `403` — If the calling user does not have permission to view the given space.
- `404` — Returned if there is no space with the given spaceKey.

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"
  }
}
```
