Create Playlist and Add Items to a Playlist
Learn to create a playlist and add items to it using a Spotify user account.
Overview
In this lesson, we'll discuss two endpoints. One is used to create a playlist using a Spotify user account, and the other is used to add items, or tracks, to that playlist or a different playlist that the user owns.
New playlist
The Create Playlist endpoint of the Spotify API creates a playlist using our current user's Spotify account. The base URI of this endpoint is https://api.spotify.com/v1/users/{user_id}/playlists
. We'll need the Spotify ID of the user to create the playlist. The {user_id}
in the ...