provider Player PUT /me/player/volume
@utdk/spotify /me/player/volume
Set Playback 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.
volume_percent query required
integer
device_id query
string

Try it

Authentication
Configure credentials for Spotify Web API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

setVolumeForUsersPlayback
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.

required

Enter a gateway URL above to enable sending.

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

TypeScript

import spotify from '@utdk/spotify';

await spotify.setVolumeForUsersPlayback()