Skip to content

Queue

Spicetify.Queue reads Spotify’s internal queue state each time you access it. It is undefined until the player has loaded.

const Queue: {
track: ProvidedTrack;
prevTracks: ProvidedTrack[];
nextTracks: ProvidedTrack[];
queueRevision: bigint;
};
PropertyTypeDescription
trackProvidedTrackThe current track.
prevTracksProvidedTrack[]Tracks already played.
nextTracksProvidedTrack[]Tracks still to play, starting with the user’s queue.
queueRevisionbigintSpotify’s revision of the queue.

This is a private Spotify object, and its shape can change between client versions.

const upNext = Spicetify.Queue?.nextTracks.slice(0, 5).map((track) => track.uri);