provider Player PUT /me/player/shuffle
@utdk/spotify /me/player/shuffle
Toggle Playback Shuffle
Toggle shuffle on or off for user’s playback. 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.
state query required
boolean
device_id query
string

Try it

Authentication
Configure credentials for Spotify Web API
toggleShuffleForUsersPlayback
PUT/me/player/shuffle
Toggle shuffle on or off for user’s playback. 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.

required

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import spotify from '@utdk/spotify';

await spotify.toggleShuffleForUsersPlayback()