Skip to content
DocumentationAPI Reference

Check If User Follows Artists or Users

me().following().check(FollowingCheckParamsparams, RequestOptionsrequestOptions = RequestOptions.none()) : List<Boolean>
GET/me/following/contains

Check to see if the current user is following one or more artists or other Spotify users.

ParametersExpand Collapse
params: FollowingCheckParams
ids: String

A comma-separated list of the artist or the user Spotify IDs to check. For example: ids=74ASZWbe4lXaubB36ztrGX,08td7MxkoHQkXnWAYD8d6Q. A maximum of 50 IDs can be sent in one request.

type: Type

The ID type: either artist or user.

ARTIST("artist")
USER("user")

Check If User Follows 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.FollowingCheckParams

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

    val params: FollowingCheckParams = FollowingCheckParams.builder()
        .ids("2CIMQHirSU0MQqyYHq0eOx,57dN52uHvrHOxijzpIgu3E,1vCWHaC5f2uS3yhpwWbIA6")
        .type(FollowingCheckParams.Type.ARTIST)
        .build()
    val response: List<Boolean> = client.me().following().check(params)
}
[
  false,
  true
]
Returns Examples
[
  false,
  true
]