Skip to main content

Queue

note

This type is deducted from Spotify's internal usage. It may not be accurate and may change in the future.

The Queue object contains a list of queuing tracks, history of played tracks, and current track metadata.

Spicetify.Queue

Return

const Queue: {
nextTracks: ProvidedTrack[];
prevTracks: ProvidedTrack[];
queueRevision: string;
track: ProvidedTrack;
};
PropertyTypeDescription
nextTracksProvidedTrack[]List of next tracks.
prevTracksProvidedTrack[]List of previous tracks.
queueRevisionstringQueue revision ID used internally by Spotify.
trackProvidedTrackCurrent track.

Usage

If you plan on developing extensions that need to access the current queue, you can use the Spicetify.Queue object.

const queue = Spicetify.Queue;
const currentTrack = queue.track;