---
related_nodes: ["spotify_playback_control", "spotify_get_queue", "spotify_add_to_queue"]
---

# Spotify Get Playback State

## Overview

Fetches the current playback state for the connected Spotify account.
Returns track/device metadata and playback flags in a single `output` object.

If there is no active Spotify device/session, this node returns a safe default payload
(`is_playing: false`, track/device fields as `null`) instead of failing.

## When to Use

- Check if music is currently playing before issuing control actions
- Read current track metadata for notifications or dashboards
- Branch workflow logic based on `is_playing`, `repeat_state`, or `shuffle_state`

## Configuration

**connection** (required)
- Spotify connection from workspace Settings → Connections

**retry** (optional, default: Off)
- Sends a request again after a failure that passes; see [Retries](http_get.md#retries). Reading the playback state is a read, sent again freely.

## Inputs

**input** (required)
- Any value; used for workflow control flow

## Outputs

**output**
```json
{
  "is_playing": true,
  "track_name": "Song Name",
  "artist_name": "Artist A, Artist B",
  "album_name": "Album Name",
  "progress_ms": 42135,
  "duration_ms": 201000,
  "device_name": "MacBook Pro",
  "device_type": "Computer",
  "shuffle_state": false,
  "repeat_state": "off",
  "timestamp": 1712345678901
}
```

No active device/session result:
- `is_playing: false`
- most metadata fields `null`

## Example

```json
{
  "connection": "spotify-main"
}
```

## Tips

- Pair this node with **Spotify Playback Control** to avoid no-device playback errors.
- Use `track_name` + `artist_name` to generate now-playing messages.
- Treat `progress_ms` and `duration_ms` as nullable values.
