Skip to content
DocumentationAPI Reference

Check if Current User Follows Playlist

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

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

ParametersExpand Collapse
FollowerCheckParams params
Optional<String> playlistId

The Spotify ID of the playlist.

Optional<String> ids

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;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        SpottedClient client = SpottedOkHttpClient.fromEnv();

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