Contents

Spotify Get Queue

spotify_get_queue · Nodes · Media

Reads the current Spotify playback queue.

Spotify Get Queue#

Overview#

Fetches the currently playing track and upcoming queue for the connected Spotify account. Returns a normalized structure with currently_playing and queue arrays.

Queue endpoints generally require Spotify Premium and an active playback device.

When to Use#

  • Show upcoming tracks in a workflow-generated report
  • Confirm queue state after adding songs
  • Build DJ-style automations around what is coming next

Configuration#

connection (required)

  • Spotify connection from workspace Settings → Connections

retry (optional, default: Off)

  • Sends a request again after a failure that passes; see Retries. Reading the queue is a read, sent again freely.

Inputs#

input (required)

  • Any value; used for workflow control flow

Outputs#

output

{
  "currently_playing": {
    "id": "4iV5W9uYEdYUVa79Axb7Rh",
    "name": "Never Gonna Give You Up",
    "uri": "spotify:track:4iV5W9uYEdYUVa79Axb7Rh",
    "artist_names": ["Rick Astley"],
    "album_name": "Whenever You Need Somebody",
    "duration_ms": 212000
  },
  "queue": []
}

Common failures include API errors such as missing active device, Premium restrictions, or rate limits (returned from Spotify as non-2xx errors).

Example#

{
  "connection": "spotify-main"
}

Tips#

  • Use this after Spotify Add To Queue to verify tracks were enqueued.
  • currently_playing can be null; handle that in downstream logic.
  • Keep queue polling intervals reasonable to avoid rate-limit errors.

Inputs

  • inputRequired

Outputs

  • output

Configuration

FieldTypeRequiredDescription
connectionconnection(spotify)YesSpotify connection id ULID from list_connections
retrytagged_unionNoSends a request again after a failure that passes: a rate limit, a busy server, a dropped connection. Off sends once.
base_configrecordNoShared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow).