I am automating Spotify playlists by using Spotipy module and I want to edit the playlist's image. Is that possible?
Yes you can upload a playlist cover using Spotify API.
You can do it by sending a PUT
request at https://api.spotify.com/v1/playlists/{playlist_id}/images
this URL. Where you have to change {playlist_id}
with your Spotify ID for playlist. Along with this link, you have pass the header, which must contain: Authorization, Content-Type and {playlist_id} variables. Where Authorization is the access-token
, Content-Type must be image/jpeg
and {playlist_id} is your unique spotify playlist id.
And the image you are uploading must be Base64 encoded JPEG image data, with maximum size of 256 KB.
If you still get stucked anywhere then please refer this official reference link of spotify