Skip to content
DocumentationAPI Reference

Follow Artists or Users

me().following().follow(FollowingFollowParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
PUT/me/following

Add the current user as a follower of one or more artists or other Spotify users.

ParametersExpand Collapse
FollowingFollowParams params
List<String> ids

A JSON array of the artist or user Spotify IDs. For example: {ids:["74ASZWbe4lXaubB36ztrGX", "08td7MxkoHQkXnWAYD8d6Q"]}. A maximum of 50 IDs can be sent in one request. Note: if the ids parameter is present in the query string, any IDs listed here in the body will be ignored.

Optional<Boolean> published

The playlist's public/private status (if it should be added to the user's profile or not): true the playlist will be public, false the playlist will be private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists

Follow Artists or Users

package dev.cjav.spotted.example;

import dev.cjav.spotted.client.SpottedClient;
import dev.cjav.spotted.client.okhttp.SpottedOkHttpClient;
import dev.cjav.spotted.models.me.following.FollowingFollowParams;

public final class Main {
    private Main() {}

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

        FollowingFollowParams params = FollowingFollowParams.builder()
            .addId("string")
            .build();
        client.me().following().follow(params);
    }
}
Returns Examples