# List playlists of a channel

`GET /api/v1/video-channels/{channelHandle}/video-playlists`

Authentication: no security requirement declared for this operation.

Parameters:

- `channelHandle` (path, string, required) - The video channel handle
  Type: string
  
  Example:
  
  ```json
  "my_username | my_username@example.com"
  ```

- `start` (query, integer, optional) - Offset used to paginate results
  Type: integer
  
  minimum: 0

- `count` (query, integer, optional) - Number of items to return
  Type: integer
  
  default: 15
  
  minimum: 1
  
  maximum: 100

- `sort` (query, string, optional) - Sort column
  Type: string
  
  Example:
  
  ```json
  "-createdAt"
  ```

- `playlistType` (query, VideoPlaylistTypeSet, optional)
  Type: VideoPlaylistTypeSet
  
  The video playlist type (Regular = `1`, Watch Later = `2`)
  
  Schema: [VideoPlaylistTypeSet](https://sourcey-peertube.pages.dev/api-rest-reference/models/videoplaylisttypeset.md)
  
  enum: [1,2]

Responses:

- 200: successful operation

Content type: application/json

Type: object

- `total` (optional)
  Type: integer
  
  Example:
  
  ```json
  1
  ```

- `data` (optional)
  Type: Array<VideoPlaylist>
  
  Items:
    Reference: [VideoPlaylist](https://sourcey-peertube.pages.dev/api-rest-reference/models/videoplaylist.md); Type: VideoPlaylist

## Examples

### cURL

```bash
curl -X GET 'https://peertube2.cpy.re/api/v1/video-channels/my_username%20%7C%20my_username%40example.com/video-playlists?count=15'
```

### JavaScript

```javascript
const response = await fetch('https://peertube2.cpy.re/api/v1/video-channels/my_username%20%7C%20my_username%40example.com/video-playlists?count=15', {
  method: 'GET',
});

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

### Python

```python
import requests

response = requests.get('https://peertube2.cpy.re/api/v1/video-channels/my_username%20%7C%20my_username%40example.com/video-playlists?count=15')
print(response.text)
```
