Skip to content
DocumentationAPI Reference

Get Playlist Cover Image

playlists().images().list(ImageListParamsparams = ImageListParams.none(), RequestOptionsrequestOptions = RequestOptions.none()) : List<ImageObject>
GET/playlists/{playlist_id}/images

Get the current image associated with a specific playlist.

ParametersExpand Collapse
params: ImageListParams
playlistId: Optional<String>

The Spotify ID of the playlist.

Get Playlist Cover Image

package dev.cjav.spotted.example

import dev.cjav.spotted.client.SpottedClient
import dev.cjav.spotted.client.okhttp.SpottedOkHttpClient
import dev.cjav.spotted.models.ImageObject
import dev.cjav.spotted.models.playlists.images.ImageListParams

fun main() {
    val client: SpottedClient = SpottedOkHttpClient.fromEnv()

    val imageObjects: List<ImageObject> = client.playlists().images().list("3cEYpjA9oz9GiPac4AsH4n")
}
[
  {
    "height": 300,
    "url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
    "width": 300,
    "published": true
  }
]
Returns Examples
[
  {
    "height": 300,
    "url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
    "width": 300,
    "published": true
  }
]