In this guide

Get Playback State

Everything about the current session: track, device, volume, shuffle, repeat.

Action referenceRead

What this action does #

First, connect Spotify in Services. Then open Actions → + → Spotify and choose Get Playback State.

More about this action

Answers 204 with no body when nothing is playing and no device is active. That is a success, not an error — check `is_playing` rather than assuming a track is there.

Inputs to fill in #

Open an input to choose its value. Keep a fixed value with Text, receive it from Shortcuts, ask when the action runs, or use an Earlier Step. Read how input sources work.

Market

OptionalText

Supply a text value for this input.

Example value (replace with your own):
US

Additional Types

OptionalText

Add `episode` to see podcast playback as well as tracks.

What comes back #

In the action editor, open Output → Returned Value to choose fields for your shortcut. These are the response fields described by the app; a service may omit an optional field or return an empty list. JSON File contains the full response.

Returned fieldTypeMeaning
is_playingbooleanTrue or false.
progress_msintegerWhole-number value.
shuffle_statebooleanTrue or false.
repeat_statestringoff, track or context.
deviceobjectA group of named values.
device.idstringPass to any playback command to target this device.
device.namestringText value.
device.typestringText value.
device.volume_percentintegerWhole-number value.
device.is_activebooleanTrue or false.
itemobjectA group of named values.
item.idstringText value.
item.namestringText value.
item.uristringText value.
item.duration_msintegerWhole-number value.
item.artistsarrayA list of values.
item.artists[].namestringText value.

Run it from Shortcuts #

  1. Give the action a recognizable name and tap Save.
  2. In Apple Shortcuts, add Shortcutify’s Execute Action and select the saved action.
  3. Supply any Param or File slots you bound in the inputs, then run the shortcut.

If the result is unexpected, open Logs in Shortcutify, select the run, and inspect this step’s inputs and response.

Advanced reference #

Request, permissions, and identifiers

Request: GET https://api.spotify.com/v1/me/player

Action identifier: spotify.player.state.get.v1

Permissions declared for this action: user-read-playback-state. The account’s own access rules also apply.

InputRequest keyLocation
Marketmarketquery
Additional Typesadditional_typesquery

Spotify API reference