Skip to content
We are updating the criteria to be granted extended access to the Web API.
Please note that starting May 15, 2025 we’re introducing some changes to the way we provide Web API extended quota mode access. For more information, read here.
Web API •References / Player / Set Repeat Mode

Set Repeat Mode

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 scopes

Request

  • state
    string
    Required

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

    Example: state=context
  • device_id
    string

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

    Example: device_id=0d1841b0976bae2a3a310dd74c0f3df354899bc8

Response

Command sent

Response sample

X