In this guide

Search

Find tracks, albums, artists, playlists, shows or episodes by name.

Action referenceRead

What this action does #

First, connect Spotify in Services. Then open Actions → + → Spotify and choose Search.

More about this action

The way most shortcuts start: turn a spoken or typed phrase into a URI, then feed that URI to Start Playback or Add to Queue. Results are grouped by type, so the value you want is usually `tracks.items[0].uri`.

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.

Query

RequiredText

Free text. Field filters work too: artist:Radiohead year:2007.

Example value (replace with your own):
weird fishes

Types

RequiredList

One or more. Each requested type gets its own result list.

A list of choice values. Use a comma-separated list.

Choices: album, artist, playlist, track, show, episode, audiobook

Example value (replace with your own):
track

Market

OptionalText

ISO 3166-1 alpha-2 country code.

Example value (replace with your own):
US

Limit

OptionalWhole number

1–10.

Example value (replace with your own):
10

Offset

OptionalWhole number

0–1000.

Example value (replace with your own):
0

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
tracksobjectA group of named values.
tracks.totalintegerWhole-number value.
tracks.itemsarrayA list of values.
tracks.items[].idstringText value.
tracks.items[].namestringText value.
tracks.items[].uristringFeed this to Start Playback or Add to Queue.
tracks.items[].duration_msintegerWhole-number value.
tracks.items[].artistsarrayA list of values.
tracks.items[].artists[].namestringText value.
tracks.items[].albumobjectA group of named values.
tracks.items[].album.namestringText value.
tracks.items[].album.imagesarrayA list of values.
tracks.items[].album.images[].urlstringText value.
artistsobjectPresent only if requested.
albumsobjectPresent only if requested.
playlistsobjectPresent only if requested.

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

Action identifier: spotify.search.v1

No additional per-action permissions are declared in the app’s catalog. The integration’s connection and account access rules still apply.

InputRequest keyLocation
Queryqquery
Typestypequery
Marketmarketquery
Limitlimitquery
Offsetoffsetquery

Spotify API reference