Skip to content
DocumentationAPI Reference

Set Playback Volume

Me.Player.SetVolume(PlayerSetVolumeParamsparameters, CancellationTokencancellationToken = default)
PUT/me/player/volume

Set the volume for the user’s current playback device. 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
PlayerSetVolumeParams parameters
required Long volumePercent

The volume to set. Must be a value from 0 to 100 inclusive.

string deviceID

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

Set Playback Volume

PlayerSetVolumeParams parameters = new() { VolumePercent = 50 };

await client.Me.Player.SetVolume(parameters);
Returns Examples