In this guide

Get Currently Playing Track

What the user is listening to right now.

Action referenceRead

What this action does #

First, connect Spotify in Services. Then open Actions → + → Spotify and choose Get Currently Playing Track.

More about this action

Returns no content at all when nothing is playing, which is a success.

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
is_playingbooleanTrue or false.
progress_msintegerMilliseconds into the track.
currently_playing_typestringtrack, episode, ad or unknown.
itemobjectThe track, or the episode when a podcast is playing.
item.idstringText value.
item.namestringText value.
item.uristringText value.
item.duration_msintegerWhole-number value.
item.explicitbooleanTrue or false.
item.popularityintegerWhole-number value.
item.external_urlsobjectA group of named values.
item.external_urls.spotifystringShareable link to the track.
item.artistsarrayA list of values.
item.artists[].idstringText value.
item.artists[].namestringText value.
item.artists[].uristringText value.
item.albumobjectA group of named values.
item.album.idstringText value.
item.album.namestringText value.
item.album.release_datestringText value.
item.album.total_tracksintegerWhole-number value.
item.album.imagesarrayA list of values.
item.album.images[].urlstringCover art, largest first.
item.album.images[].heightintegerWhole-number value.
item.album.images[].widthintegerWhole-number 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/currently-playing

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

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

Spotify API reference