In this guide
Get Available Devices
The phones, computers and speakers Spotify can play on right now.
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 field | Type | Meaning |
|---|---|---|
devices | array | A list of values. |
devices[].id | string | Pass to any playback command to target this device. |
devices[].name | string | What the device calls itself. |
devices[].type | string | Computer, Smartphone, Speaker, … |
devices[].is_active | boolean | True or false. |
devices[].is_restricted | boolean | True when it cannot be controlled from here. |
devices[].volume_percent | integer | Whole-number value. |
devices[].supports_volume | boolean | True or false. |
Run it from Shortcuts #
- Give the action a recognizable name and tap Save.
- In Apple Shortcuts, add Shortcutify’s Execute Action and select the saved action.
- 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.