Search⌘ K
AI Features

Video Operations on Playlist

Explore how to manage playlists with the Dailymotion API by adding videos to a playlist, checking if specific videos belong to it, and retrieving lists of videos. This lesson provides practical guidance on using API endpoints for playlist video operations with example code and request details.

In this lesson, we'll see how we can add videos to our playlist, how we can check if a particular video belongs to a playlist, and how to retrieve a list of videos available in a playlist. We'll use the following endpoints for these tasks:

  • Add a video to a playlist and check if a video is connected to the playlist: {base_url}/playlist/{playlist_Id}/videos/{video_Id}

  • Retrieve a list of all videos in a playlist: {base_url}/playlist/{playlist_Id}/videos

Add a video to a playlist

In this section, we'll add videos to our playlist. We add our uploaded video to the playlist, but we have some video IDs in the table below. We can also use them ...