In this guide

Get Available Devices

The phones, computers and speakers Spotify can play on right now.

Action referenceRead

What this action does #

First, connect Spotify in Services. Then open Actions → + → Spotify and choose Get Available Devices.

More about this action

Only devices that are on and signed in are listed. An ID here is what every playback command's Device takes. Spotify keeps a device's ID for a while but does not promise to keep it forever, so a device that stops answering may need choosing again.

Inputs to fill in #

This action has no input fields. You can name and save it after choosing the action.

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
devicesarrayA list of values.
devices[].idstringPass to any playback command to target this device.
devices[].namestringWhat the device calls itself.
devices[].typestringComputer, Smartphone, Speaker, …
devices[].is_activebooleanTrue or false.
devices[].is_restrictedbooleanTrue when it cannot be controlled from here.
devices[].volume_percentintegerWhole-number value.
devices[].supports_volumebooleanTrue or false.

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/devices

Action identifier: spotify.player.devices.list.v1

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

Spotify API reference