Player

Set Repeat Mode

PUT
/me/player/repeat

Set the repeat mode for the 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.

Authorization

oauth_2_0 user-modify-playback-state
AuthorizationBearer <token>

Spotify supports OAuth 2.0 for authenticating all API requests.

In: header

Scope: user-modify-playback-state

Query Parameters

state*State

track, context or off. track will repeat the current track. context will repeat the current context. off will turn repeat off.

device_id?Device ID

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

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/me/player/repeat?state=context"
Empty