Playlists
Fetch curated playlists and their videos
The playlists namespace reads the playlists you curate in the admin panel.
playlists.list()
const { data: playlists } = await bold.playlists.list();
for (const playlist of playlists) {
console.log(playlist.title, playlist.videos.length);
}playlists.get(id)
const { data: playlist } = await bold.playlists.get('playlist-id');
console.log(playlist.title);
for (const video of playlist.videos) {
console.log(video.title); // in the order you arranged them
}Featured playlists
The playlists you mark as featured (Settings → Featured Playlists) come back with your channel settings, ready for a homepage:
const settings = await bold.settings();
for (const playlist of settings.featuredPlaylists) {
renderRow(playlist);
}Full type definitions in Types.