# Get a video playlist

`GET /api/v1/video-playlists/{playlistId}`

Authentication: no security requirement declared for this operation.

Parameters:

- `playlistId` (path, id, required) - Playlist id
  Type: id
  
  Schema: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md)
  
  minimum: 1
  
  Example:
  
  ```json
  42
  ```

Responses:

- 200: successful operation

Content type: application/json

Type: VideoPlaylist

Schema: [VideoPlaylist](https://sourcey-peertube.pages.dev/api-rest-reference/models/videoplaylist.md)

- `id` (optional)
  Reference: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md); Type: id
  
  minimum: 1
  
  Example:
  
  ```json
  42
  ```

- `uuid` (optional)
  Reference: [UUIDv4](https://sourcey-peertube.pages.dev/api-rest-reference/models/uuidv4.md); Type: UUIDv4, uuid
  
  minLength: 36
  
  maxLength: 36
  
  pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
  
  Example:
  
  ```json
  "9c9de5e8-0a1e-484a-b099-e80766180a6d"
  ```

- `shortUUID` (optional)
  Reference: [shortUUID](https://sourcey-peertube.pages.dev/api-rest-reference/models/shortuuid.md); Type: shortUUID

- `createdAt` (optional)
  Type: string, date-time

- `updatedAt` (optional)
  Type: string, date-time

- `description` (optional)
  Type: string
  
  minLength: 3
  
  maxLength: 1000

- `displayName` (optional)
  Type: string
  
  minLength: 1
  
  maxLength: 120

- `isLocal` (optional)
  Type: boolean

- `videoLength` (optional)
  Type: integer
  
  minimum: 0

- `thumbnailPath` (optional)
  Type: string; nullable
  
  Deprecated in PeerTube v8.1, use thumbnails instead. Null if the file is stored in object storage: use the non-deprecated field instead.
  
  deprecated: true

- `thumbnails` (optional)
  Type: Array<Thumbnail>
  
  **PeerTube >= 8.1** Array of thumbnails for the playlist
  
  Items:
    Reference: [Thumbnail](https://sourcey-peertube.pages.dev/api-rest-reference/models/thumbnail.md); Type: Thumbnail

- `privacy` (optional)
  Reference: [VideoPlaylistPrivacyConstant](https://sourcey-peertube.pages.dev/api-rest-reference/models/videoplaylistprivacyconstant.md); Type: VideoPlaylistPrivacyConstant

- `type` (optional)
  Reference: [VideoPlaylistTypeConstant](https://sourcey-peertube.pages.dev/api-rest-reference/models/videoplaylisttypeconstant.md); Type: VideoPlaylistTypeConstant

- `ownerAccount` (optional)
  Reference: [AccountSummary](https://sourcey-peertube.pages.dev/api-rest-reference/models/accountsummary.md); Type: AccountSummary

- `videoChannel` (optional)
  Reference: [VideoChannelSummary](https://sourcey-peertube.pages.dev/api-rest-reference/models/videochannelsummary.md); Type: VideoChannelSummary

- `videoChannelPosition` (optional)
  Type: integer
  
  Position of the playlist in the channel
  
  minimum: 1

## Examples

### cURL

```bash
curl -X GET 'https://peertube2.cpy.re/api/v1/video-playlists/42'
```

### JavaScript

```javascript
const response = await fetch('https://peertube2.cpy.re/api/v1/video-playlists/42', {
  method: 'GET',
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get('https://peertube2.cpy.re/api/v1/video-playlists/42')
print(response.text)
```
