Geting playlist videos by API

Hi,

I want to develop a plugin for Wordress that allow users to display peertube playlists on their website.
I can access to public playlist with the API like this: https://peertube.fr/api/v1/accounts/username/video-playlists/
But i haven’t find how to access to the videos that are in the playlist (i checked in the API documentation but don’t found any thing like this)

Is it possible?

Thanks :slight_smile:

Hello,

It’s /video-playlists/:videoPlaylistId/videos: https://github.com/Chocobozzz/PeerTube/blob/develop/server/controllers/api/video-playlist.ts#L85

But keep in mind that PeerTube does not support playlist embed (yet).

1 Like

Great, thanks you!

I want to embed each video, not the entire playlist in one time,so that what i was looking for :slight_smile: