ShareShortcuts

iMessage2Spotify

iannotian
Fork “iMessage2Spotify”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so iannotian gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
36K
Saved
2
Actions
55
Category
Music
Version
1.0
Language
EN

Preview

Instantly add Spotify songs from iMessage links to your playlist–effortlessly and in the background.

Do your friends send you a lot of Spotify links through iMessage? Do you wish you could have those songs sent to a playlist automatically, so that you can listen to all of them later? If so, iMessage2Spotify is for you.

[⚠️ REQUIRED!] Installation Instructions

NOTE: This Shortcut requires a one-time initial setup to authorize adding songs to your Spotify account. It will not work if you do not set it up first.

  • Allow the shortcut to add Playlists to your Spotify account by tapping on iMessage2Spotify in your Shortcuts app after you install it.
  • Add two Personal Automations that "Run Immediately" on a received message: one for messages containing spotify.link and another for messages containing open.spotify.com/track
  • Your Personal Automation must be configured to use the incoming message as input to the Shortcut. It should look like this.

After setup, for every song link that you receive via iMessage, the shortcut will add a song to a iMessage2Spotify playlist in your Spotify.

Having problems?

Possible troubleshooting steps:

  • Try deleting the imessage2spotify.json file in your iCloud Drive/Shortcuts/ folder to reset everything, and then run iMessage2Spotify again.
  • Try logging out and back into Spotify Web via Safari if you have issues authorizing during setup.
  • If you're on iOS 16+, your Personal Automation must be configured to use the incoming message as input to the Shortcut. It should look like this.
  • If it used to trigger on messages, but doesn't anymore, it could be because Spotify changed their share links in March 2023. Add a Personal Automation for messages containing spotify.link. See this GitHub issue for more details.

Still having issues? Post an issue on GitHub and tag @iannotian.

Uninstall

If you wish to revoke iMessage2Spotify's playlist read/write access (which will disable this shortcut's functionality), go to https://www.spotify.com/us/account/apps/ and press Remove Access.

Also, delete the shortcut and the file at Files/iCloud Drive/Shortcuts/imessage2spotify.json.

Source code on GitHub

What's New

Version 1.0

First release

Version History
1.0 Dec 31, 2022

First release

What it does

55 actions
  1. URL
  2. Get Component of URL
  3. Replace Text
  4. List
  5. Combine Text
  6. Set Variable
    TrackUri
  7. Text
  8. Set Variable
    baseUrl
  9. Get File
  10. If
  11. Show Alert
  12. Show Web Page
  13. Get Dictionary from Input
  14. If
  15. Get Contents of URL
    https://api.spotify.com/v1/me
  16. Set Dictionary Value
  17. Get Contents of URL
    https://api.spotify.com/v1/users/…/playlists
  18. Set Dictionary Value
  19. Save File
  20. Show Alert
  21. Text
  22. Copy to Clipboard
  23. If
  24. Show Alert
  25. Stop This Shortcut
  26. If
  27. If
  28. Show Alert
  29. Text
  30. Copy to Clipboard
  31. Stop This Shortcut
  32. Get Text from Input
  33. Get Dictionary from Input
  34. Set Variable
    ExistingTokens
  35. Get Details of Files
  36. If
  37. If
  38. Get Contents of URL
    …/api/spotify/save/…
  39. If
  40. Get Contents of URL
    https://api.spotify.com/v1/users/…/playlists
  41. Set Dictionary Value
  42. Save File
  43. Get Contents of URL
    https://api.spotify.com/v1/playlists/…/tracks
  44. If
  45. Show Alert
  46. If
  47. Get Dictionary from Input
  48. Get Contents of URL
    …/api/spotify/refresh?token=…
  49. Set Variable
    NewTokens
  50. Set Dictionary Value
  51. Set Dictionary Value
  52. If
  53. Set Dictionary Value
  54. Save File
  55. Get Contents of URL
    …/api/spotify/save/…

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

You Might Also Like

See All
Advertisement