ShareShortcuts

Spotify To MP3

Download Spotify track to MP3

chrunos
Fork “Spotify To MP3”

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 chrunos 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
51K
Saved
3
Actions
56
Category
Music
Version
1.4
Language
EN

Download Spotify track to MP3. Run it from Spotify Share Sheet or copy the Spotify track URL and run it. Music will be sourced from YouTube Music, so YouTube Music has to be available in your country for this shortcut to work.

Learn more ways to Download Spotify to MP3.

What's New

Version 1.4

minor fix

Version History
1.4 Mar 9, 2025

minor fix

1.3 Mar 9, 2025

minor fix

1.2 Apr 16, 2024

minor fix

1.1 Apr 20, 2023

Fix downloading errors

1.0 Mar 24, 2022

First release

What it does

56 actions
  1. Comment
    Version: 2.7
  2. Comment
    Created by Cody Chrunos My website: chrunos.com Watch tutorial videos in my YouTube channel: https://www.youtube.com/channel/UCtj4sKppQr_Xd9TjxSw4JwQ
  3. Get Contents of URL
    https://raw.githubusercontent.com/CodyChrunos/Shortcuts/main/spotifytomp3.json
  4. Set Variable
    update
  5. Get Dictionary Value
  6. Text
  7. If
  8. Text
  9. Choose from Menu
    …
  10. Choose from Menu
    Update Now
  11. Open URLs
  12. Stop This Shortcut
  13. Choose from Menu
    Not Now
  14. If
  15. Match Text
  16. Get Group from Matched Text
  17. If
  18. Choose from Menu
    Choose Quality
  19. Choose from Menu
    MP3_128
  20. Choose from Menu
    MP3_320
  21. Choose from Menu
    Premium Only
  22. Choose from Menu
    Get Premium
  23. Open URLs
  24. Choose from Menu
    Get Help from Telegram
  25. Open URLs
  26. Stop This Shortcut
  27. Choose from Menu
    FLAC - from another source
  28. Open URLs
  29. Stop This Shortcut
  30. If
  31. Show Notification
    Failed to Find Track ID! This only supports Spotify track.
  32. Stop This Shortcut
  33. Text
  34. Get Contents of URL
    …
  35. Get Dictionary Value
  36. Get Contents of URL
    …
  37. Get Name
  38. Get Details of Files
  39. If
  40. Set Name
  41. If
  42. Get Variable
  43. Save File
  44. Choose from Menu
    What's next?
  45. Choose from Menu
    Get Spotify Downloader HQ Shortcut
  46. URL
    https://chrunos.com/premium-shortcuts/#spotify+downloader
  47. Open URLs
  48. Choose from Menu
    Buy me a Coffee
  49. URL
    https://chrunos.com/donate/
  50. Open URLs
  51. Choose from Menu
    Check Updates and Spotify Playlist Downloader shortcut
  52. URL
    https://chrunos.com/spotify-shortcuts-ios/#spotify+playlist+downloader
  53. Open URLs
  54. Choose from Menu
    Submit Feedback
  55. Open URLs
  56. Choose from Menu
    Exit

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#define color darkblue

// Version: 2.7

/*
Created by Cody Chrunos
My website: chrunos.com
Watch tutorial videos in my YouTube channel: https://www.youtube.com/channel/UCtj4sKppQr_Xd9TjxSw4JwQ
*/
downloadURL("https://raw.githubusercontent.com/CodyChrunos/Shortcuts/main/spotifytomp3.json")
@update
const Text = "3.0"

if Text !=  {
	menu  {
	item "Update Now":
		openURL(@update)
		stop()
	item "Not Now":
	}
} else {
	const Matches = containsText(ShortcutInput, "(?:https://open\.spotify\.com/track/|spotify:track:)([a-zA-Z0-9]+)")
	const Text1 = getMatchGroup(Matches, 0)
	if Text1 {
		menu "Choose Quality" {
		item "MP3_128":
		item "MP3_320":
			menu "Premium Only" {
			item "Get Premium":
				openURL("https://chrunos.com/premium-shortcuts/")
			item "Get Help from Telegram":
				openURL("https://t.me/chrunoss")
			}
			stop()
		item "FLAC - from another source":
			openURL("https://chrunos.com/premium-shortcuts/")
			stop()
		}
	} else {
		showNotification("Failed to Find Track ID! This only supports Spotify track.", false, Text1)
		stop()
	}
	const ContentsOfURL = downloadURL()
	const ContentsOfURL1 = downloadURL()
	getName(ContentsOfURL1)
	const FileExtension = getFileDetail(nil, "File Extension")
	if FileExtension == "mp4" {
		setName(ContentsOfURL1, "{}.m4a")
	} else {
		// TODO: Get Variable not supported: Assign variable here to 'ContentsOfURL1'.
	}
	saveFilePrompt(IfResult)
}

menu "What's next?" {
item "Get Spotify Downloader HQ Shortcut":
	const URL = url("https://chrunos.com/premium-shortcuts/#spotify+downloader")
	openURL(URL)
item "Buy me a Coffee":
	const URL1 = url("https://chrunos.com/donate/")
	openURL(URL1)
item "Check Updates and Spotify Playlist Downloader shortcut":
	const URL2 = url("https://chrunos.com/spotify-shortcuts-ios/#spotify+playlist+downloader")
	openURL(URL2)
item "Submit Feedback":
	openURL("https://t.me/chrunoss")
item "Exit":
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

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

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

Advertisement

More by chrunos

See All

You Might Also Like

See All
Advertisement