powered by
Add Video to Playlist
add_video_to_playlist(playlist_id, video_id, position = NULL, ...)
Details of the added video in the playlist.
string; Required. The ID of the playlist.
string; Required. The ID of the video to add.
numeric; Optional. The position of the video in the playlist. If not provided, the video will be added to the end of the playlist.
Additional arguments passed to tuber_POST_json.
tuber_POST_json
https://developers.google.com/youtube/v3/docs/playlistItems/insert
if (FALSE) { # Set API token via yt_oauth() first add_video_to_playlist(playlist_id = "YourPlaylistID", video_id = "2_gLD1jarfU") }
Run the code above in your browser using DataLab