Skip to content
DocumentationAPI Reference

Skip To Next

me().player().skipNext(PlayerSkipNextParamsparams = PlayerSkipNextParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
POST/me/player/next

Skips to next track in the user’s queue. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.

ParametersExpand Collapse
params: PlayerSkipNextParams
deviceId: Optional<String>

The id of the device this command is targeting. If not supplied, the user's currently active device is the target.

Skip To Next

package dev.cjav.spotted.example

import dev.cjav.spotted.client.SpottedClient
import dev.cjav.spotted.client.okhttp.SpottedOkHttpClient
import dev.cjav.spotted.models.me.player.PlayerSkipNextParams

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

    client.me().player().skipNext()
}
Returns Examples