Skip to content
DocumentationAPI Reference

Check if Current User Follows Playlist

playlists().followers().check(FollowerCheckParamsparams = FollowerCheckParams.none(), RequestOptionsrequestOptions = RequestOptions.none()) : List<Boolean>
GET/playlists/{playlist_id}/followers/contains

Check to see if the current user is following a specified playlist.

ParametersExpand Collapse
params: FollowerCheckParams
playlistId: Optional<String>

The Spotify ID of the playlist.

ids: Optional<String>

Deprecated A single item list containing current user's Spotify Username. Maximum: 1 id.

Check if Current User Follows Playlist

package dev.cjav.spotted.example

import dev.cjav.spotted.client.SpottedClient
import dev.cjav.spotted.client.okhttp.SpottedOkHttpClient
import dev.cjav.spotted.models.playlists.followers.FollowerCheckParams

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

    val response: List<Boolean> = client.playlists().followers().check("3cEYpjA9oz9GiPac4AsH4n")
}
[
  true
]
Returns Examples
[
  true
]