Skip to content
DocumentationAPI Reference

Add Item to Playback Queue

me.player.queue.add(QueueAddParams**kwargs)
POST/me/player/queue

Add an item to be played next in the user's current playback queue. 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
uri: str

The uri of the item to add to the queue. Must be a track or an episode uri.

device_id: Optional[str]

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

Add Item to Playback Queue

import os
from spotted import Spotted

client = Spotted(
    access_token=os.environ.get("SPOTIFY_ACCESS_TOKEN"),  # This is the default and can be omitted
)
client.me.player.queue.add(
    uri="spotify:track:4iV5W9uYEdYUVa79Axb7Rh",
)
Returns Examples