<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Aidan Maurin-Jones | Music</title><link>https://blog.aidanmaurinjones.com/tags/music/</link><description>Music</description><language>en</language><atom:link href="https://blog.aidanmaurinjones.com/tags/music/index.xml" rel="self" type="application/rss+xml"/><item><title>Converting Spotify Links with Apple Shortcuts</title><link>https://blog.aidanmaurinjones.com/posts/converting-spotify-links-with-apple-shortcuts/</link><guid isPermaLink="true">https://blog.aidanmaurinjones.com/posts/converting-spotify-links-with-apple-shortcuts/</guid><pubDate>Mon, 02 Nov 2026 00:00:00 +0000</pubDate><description><![CDATA[<p>Music streaming has made discovering and sharing songs easier than ever. Unfortunately, sharing music between streaming services remains unnecessarily complicated.</p>
<p>Someone sends you a Spotify link. You use YouTube Music. Now what?</p>
<p>You could open Spotify, find the song title and artist, switch to YouTube Music, and search for it manually. None of this is particularly difficult, but it&rsquo;s an annoying series of steps for something that should be effortless.</p>
<p>This is exactly the sort of small inconvenience that Apple Shortcuts is good at eliminating.</p>
<p>So I built a Shortcut that takes a Spotify link, identifies the song and artist, and opens a search for that song on YouTube.</p>
<p>No Spotify account required. No copying song titles. No switching between applications to figure out what someone sent me.</p>
<p>Just a link and a Shortcut.</p>
<h3 id="the-problem-with-music-links">The Problem with Music Links</h3>
<p>A Spotify link is useful if you use Spotify. If you don&rsquo;t, it&rsquo;s considerably less convenient.</p>
<p>Music streaming services have spent years building their own ecosystems, complete with playlists, recommendations, libraries, and sharing features. But the links they generate generally point back to their respective platforms.</p>
<p>The underlying music, of course, isn&rsquo;t exclusive to those links.</p>
<p>A song available on Spotify is often available on Apple Music, YouTube Music, Deezer, and other services. The problem isn&rsquo;t finding the music. It&rsquo;s translating a link from one service into something useful on another.</p>
<p>There are already services designed to solve this problem, including <a href="https://song.link/">Song.link</a>, which generates cross-platform music links.</p>
<p>And, conveniently, Song.link has an API.</p>
<p>That makes it an excellent candidate for Apple Shortcuts.</p>
<h3 id="building-the-shortcut">Building the Shortcut</h3>
<p>My Shortcut, unimaginatively named <strong>Spotify Link Converter</strong>, starts by accepting a URL through the Share Sheet.</p>
<p>If nothing is provided, it retrieves the contents of the clipboard instead. This means I can either share a Spotify link directly to the Shortcut or simply copy one and run it manually.</p>
<p>From there, the Shortcut extracts the URL and encodes it so it can be safely included in an API request.</p>
<p>The request itself is straightforward:</p>
<p><code>https://api.song.link/v1-alpha.1/links?url=</code></p>
<p>The encoded Spotify URL is appended to the end, and Shortcuts&rsquo; <strong>Get Contents of URL</strong> action sends the request.</p>
<p>Song.link returns a JSON response containing information about the music associated with the original link, including metadata and links to other streaming platforms.</p>
<p>For my purposes, I only need two pieces of information: the song title and the artist.</p>
<h3 id="extracting-the-music-metadata">Extracting the Music Metadata</h3>
<p>This is where the Shortcut becomes a little more interesting.</p>
<p>Song.link&rsquo;s API response contains an <code>entitiesByUniqueId</code> dictionary, which holds metadata about the music identified by the service.</p>
<p>The Shortcut uses the returned <code>entityUniqueId</code> to construct dictionary paths for two values:</p>
<ul>
<li><code>entitiesByUniqueId.[entityUniqueId].title</code></li>
<li><code>entitiesByUniqueId.[entityUniqueId].artistName</code></li>
</ul>
<p>Using Shortcuts&rsquo; <strong>Get Dictionary Value</strong> action, I extract those values and store them in variables named <code>Song</code> and <code>Artist</code>.</p>
<p>This is one of my favourite things about Shortcuts: you can interact with a web API, process a JSON response, and extract specific values without writing a traditional application.</p>
<p>There are no dependencies to install, no server to maintain, and no need to write a script just to make a simple HTTP request.</p>
<p>It&rsquo;s all handled through a handful of native Shortcuts actions.</p>
<h3 id="turning-metadata-into-a-youtube-search">Turning Metadata into a YouTube Search</h3>
<p>Once the Shortcut has the song title and artist, it combines them into a single string:</p>
<p><code>Song by Artist</code></p>
<p>For example, if someone shares a Spotify link to <em>Dreams</em> by Fleetwood Mac, the Shortcut produces:</p>
<p><code>Dreams by Fleetwood Mac</code></p>
<p>That text is then URL-encoded and appended to a YouTube search URL:</p>
<p><code>youtube://www.youtube.com/results?search_query=</code></p>
<p>Finally, the <strong>Open URLs</strong> action opens the resulting search.</p>
<p>And that&rsquo;s it.</p>
<p>Rather than trying to find an exact equivalent track on another streaming service, the Shortcut searches YouTube using the metadata returned by Song.link.</p>
<p>It&rsquo;s a deliberately simple approach. I don&rsquo;t need a complicated matching algorithm or a database of streaming service identifiers. YouTube&rsquo;s search functionality already does the heavy lifting.</p>
<p>The Shortcut also doesn&rsquo;t need access to my YouTube Music account, or any account for that matter.</p>
<p>One important distinction is that this opens a YouTube search, not necessarily the exact song in YouTube Music. I still choose the appropriate result, and search results may include music videos, live performances, or covers.</p>
<p>For my use case, that&rsquo;s perfectly acceptable.</p>
<h3 id="why-not-just-use-songlink">Why Not Just Use Song.link?</h3>
<p>That&rsquo;s a fair question.</p>
<p>Song.link already provides a webpage containing links to different streaming services. I could simply open the Spotify URL through Song.link and choose the platform I want.</p>
<p>But that introduces another webpage and another interaction.</p>
<p>I don&rsquo;t need a list of every streaming service that carries a particular song. I already know where I want to listen to it.</p>
<p>By using the API directly, I can skip the intermediate webpage entirely.</p>
<p>The Shortcut gets the information it needs and immediately opens the search.</p>
<p>It&rsquo;s a small optimization, but one that makes the process feel considerably more natural.</p>
<h3 id="the-beauty-of-small-automations">The Beauty of Small Automations</h3>
<p>I&rsquo;ve always believed that some of the most useful automations are the ones that eliminate tiny inconveniences rather than solve enormous problems.</p>
<p>This Shortcut isn&rsquo;t particularly sophisticated. It doesn&rsquo;t use artificial intelligence, maintain a database, or require a complicated collection of third-party applications.</p>
<p>It makes an HTTP request, extracts two values from a dictionary, constructs a URL, and opens it.</p>
<p>That&rsquo;s all it needs to do.</p>
<p>Could I have accomplished the same thing manually? Absolutely. Would doing so take more than a few seconds? Probably not.</p>
<p>But those extra steps are precisely why I built it.</p>
<p>The less friction involved in doing something, the more likely I am to actually do it.</p>
<p>And when a Shortcut can turn a series of repetitive actions into a single interaction, I consider that a worthwhile improvement.</p>
<p>Sometimes the best automation isn&rsquo;t the one that does the most.</p>
<p>It&rsquo;s the one that gets out of your way.</p>
<article class="app-card">
  <a class="app-card__icon" href="https://www.icloud.com/shortcuts/de6b0253ab784af6b9b181af6209dba8" target="_blank" rel="noopener">
    <img src="/images/Shortcuts%20Icons/Spotify%20Link%20Converter%20Icon.jpg" alt="Spotify Link Converter app icon" width="52" height="52">
  </a>
  <a class="app-card__title" href="https://www.icloud.com/shortcuts/de6b0253ab784af6b9b181af6209dba8" target="_blank" rel="noopener">
    Spotify Link Converter
  </a>
</article>

<div class="amj-cta" aria-label="Support and subscription links">
  <div class="amj-cta__item amj-cta__item--coffee">
    <a class="amj-cta__button amj-cta__button--coffee" href="https://www.buymeacoffee.com/AidanMJ25" target="_blank" rel="noopener">
      <span>Buy Me a Coffee</span>
    </a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--rss" href="https://blog.aidanmaurinjones.com/posts/index.xml" target="_blank" rel="noopener" aria-label="Subscribe via RSS">
      <svg width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M6.18 17.82a1.82 1.82 0 1 1 0-3.64 1.82 1.82 0 0 1 0 3.64Zm-3-8.18v2.73a8.64 8.64 0 0 1 8.64 8.64h2.73A11.36 11.36 0 0 0 3.18 9.64Zm0-4.09v2.73A15.45 15.45 0 0 1 18.55 23h2.73C21.27 11.73 12.45 2.91 3.18 5.55Z"/></svg>
      <span>Subscribe via RSS</span>
    </a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--newsletter" href="https://buttondown.com/AidanMJ25" target="_blank" rel="noopener">Newsletter via Email</a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--rss" href="https://blog.aidanmaurinjones.com/newsletter/index.xml" target="_blank" rel="noopener" aria-label="Newsletter via RSS">
      <svg width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M6.18 17.82a1.82 1.82 0 1 1 0-3.64 1.82 1.82 0 0 1 0 3.64Zm-3-8.18v2.73a8.64 8.64 0 0 1 8.64 8.64h2.73A11.36 11.36 0 0 0 3.18 9.64Zm0-4.09v2.73A15.45 15.45 0 0 1 18.55 23h2.73C21.27 11.73 12.45 2.91 3.18 5.55Z"/></svg>
      <span>Newsletter via RSS</span>
    </a>
  </div>
</div>

]]></description><content:encoded><![CDATA[<p>Music streaming has made discovering and sharing songs easier than ever. Unfortunately, sharing music between streaming services remains unnecessarily complicated.</p>
<p>Someone sends you a Spotify link. You use YouTube Music. Now what?</p>
<p>You could open Spotify, find the song title and artist, switch to YouTube Music, and search for it manually. None of this is particularly difficult, but it&rsquo;s an annoying series of steps for something that should be effortless.</p>
<p>This is exactly the sort of small inconvenience that Apple Shortcuts is good at eliminating.</p>
<p>So I built a Shortcut that takes a Spotify link, identifies the song and artist, and opens a search for that song on YouTube.</p>
<p>No Spotify account required. No copying song titles. No switching between applications to figure out what someone sent me.</p>
<p>Just a link and a Shortcut.</p>
<h3 id="the-problem-with-music-links">The Problem with Music Links</h3>
<p>A Spotify link is useful if you use Spotify. If you don&rsquo;t, it&rsquo;s considerably less convenient.</p>
<p>Music streaming services have spent years building their own ecosystems, complete with playlists, recommendations, libraries, and sharing features. But the links they generate generally point back to their respective platforms.</p>
<p>The underlying music, of course, isn&rsquo;t exclusive to those links.</p>
<p>A song available on Spotify is often available on Apple Music, YouTube Music, Deezer, and other services. The problem isn&rsquo;t finding the music. It&rsquo;s translating a link from one service into something useful on another.</p>
<p>There are already services designed to solve this problem, including <a href="https://song.link/">Song.link</a>, which generates cross-platform music links.</p>
<p>And, conveniently, Song.link has an API.</p>
<p>That makes it an excellent candidate for Apple Shortcuts.</p>
<h3 id="building-the-shortcut">Building the Shortcut</h3>
<p>My Shortcut, unimaginatively named <strong>Spotify Link Converter</strong>, starts by accepting a URL through the Share Sheet.</p>
<p>If nothing is provided, it retrieves the contents of the clipboard instead. This means I can either share a Spotify link directly to the Shortcut or simply copy one and run it manually.</p>
<p>From there, the Shortcut extracts the URL and encodes it so it can be safely included in an API request.</p>
<p>The request itself is straightforward:</p>
<p><code>https://api.song.link/v1-alpha.1/links?url=</code></p>
<p>The encoded Spotify URL is appended to the end, and Shortcuts&rsquo; <strong>Get Contents of URL</strong> action sends the request.</p>
<p>Song.link returns a JSON response containing information about the music associated with the original link, including metadata and links to other streaming platforms.</p>
<p>For my purposes, I only need two pieces of information: the song title and the artist.</p>
<h3 id="extracting-the-music-metadata">Extracting the Music Metadata</h3>
<p>This is where the Shortcut becomes a little more interesting.</p>
<p>Song.link&rsquo;s API response contains an <code>entitiesByUniqueId</code> dictionary, which holds metadata about the music identified by the service.</p>
<p>The Shortcut uses the returned <code>entityUniqueId</code> to construct dictionary paths for two values:</p>
<ul>
<li><code>entitiesByUniqueId.[entityUniqueId].title</code></li>
<li><code>entitiesByUniqueId.[entityUniqueId].artistName</code></li>
</ul>
<p>Using Shortcuts&rsquo; <strong>Get Dictionary Value</strong> action, I extract those values and store them in variables named <code>Song</code> and <code>Artist</code>.</p>
<p>This is one of my favourite things about Shortcuts: you can interact with a web API, process a JSON response, and extract specific values without writing a traditional application.</p>
<p>There are no dependencies to install, no server to maintain, and no need to write a script just to make a simple HTTP request.</p>
<p>It&rsquo;s all handled through a handful of native Shortcuts actions.</p>
<h3 id="turning-metadata-into-a-youtube-search">Turning Metadata into a YouTube Search</h3>
<p>Once the Shortcut has the song title and artist, it combines them into a single string:</p>
<p><code>Song by Artist</code></p>
<p>For example, if someone shares a Spotify link to <em>Dreams</em> by Fleetwood Mac, the Shortcut produces:</p>
<p><code>Dreams by Fleetwood Mac</code></p>
<p>That text is then URL-encoded and appended to a YouTube search URL:</p>
<p><code>youtube://www.youtube.com/results?search_query=</code></p>
<p>Finally, the <strong>Open URLs</strong> action opens the resulting search.</p>
<p>And that&rsquo;s it.</p>
<p>Rather than trying to find an exact equivalent track on another streaming service, the Shortcut searches YouTube using the metadata returned by Song.link.</p>
<p>It&rsquo;s a deliberately simple approach. I don&rsquo;t need a complicated matching algorithm or a database of streaming service identifiers. YouTube&rsquo;s search functionality already does the heavy lifting.</p>
<p>The Shortcut also doesn&rsquo;t need access to my YouTube Music account, or any account for that matter.</p>
<p>One important distinction is that this opens a YouTube search, not necessarily the exact song in YouTube Music. I still choose the appropriate result, and search results may include music videos, live performances, or covers.</p>
<p>For my use case, that&rsquo;s perfectly acceptable.</p>
<h3 id="why-not-just-use-songlink">Why Not Just Use Song.link?</h3>
<p>That&rsquo;s a fair question.</p>
<p>Song.link already provides a webpage containing links to different streaming services. I could simply open the Spotify URL through Song.link and choose the platform I want.</p>
<p>But that introduces another webpage and another interaction.</p>
<p>I don&rsquo;t need a list of every streaming service that carries a particular song. I already know where I want to listen to it.</p>
<p>By using the API directly, I can skip the intermediate webpage entirely.</p>
<p>The Shortcut gets the information it needs and immediately opens the search.</p>
<p>It&rsquo;s a small optimization, but one that makes the process feel considerably more natural.</p>
<h3 id="the-beauty-of-small-automations">The Beauty of Small Automations</h3>
<p>I&rsquo;ve always believed that some of the most useful automations are the ones that eliminate tiny inconveniences rather than solve enormous problems.</p>
<p>This Shortcut isn&rsquo;t particularly sophisticated. It doesn&rsquo;t use artificial intelligence, maintain a database, or require a complicated collection of third-party applications.</p>
<p>It makes an HTTP request, extracts two values from a dictionary, constructs a URL, and opens it.</p>
<p>That&rsquo;s all it needs to do.</p>
<p>Could I have accomplished the same thing manually? Absolutely. Would doing so take more than a few seconds? Probably not.</p>
<p>But those extra steps are precisely why I built it.</p>
<p>The less friction involved in doing something, the more likely I am to actually do it.</p>
<p>And when a Shortcut can turn a series of repetitive actions into a single interaction, I consider that a worthwhile improvement.</p>
<p>Sometimes the best automation isn&rsquo;t the one that does the most.</p>
<p>It&rsquo;s the one that gets out of your way.</p>
<article class="app-card">
  <a class="app-card__icon" href="https://www.icloud.com/shortcuts/de6b0253ab784af6b9b181af6209dba8" target="_blank" rel="noopener">
    <img src="/images/Shortcuts%20Icons/Spotify%20Link%20Converter%20Icon.jpg" alt="Spotify Link Converter app icon" width="52" height="52">
  </a>
  <a class="app-card__title" href="https://www.icloud.com/shortcuts/de6b0253ab784af6b9b181af6209dba8" target="_blank" rel="noopener">
    Spotify Link Converter
  </a>
</article>

<div class="amj-cta" aria-label="Support and subscription links">
  <div class="amj-cta__item amj-cta__item--coffee">
    <a class="amj-cta__button amj-cta__button--coffee" href="https://www.buymeacoffee.com/AidanMJ25" target="_blank" rel="noopener">
      <span>Buy Me a Coffee</span>
    </a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--rss" href="https://blog.aidanmaurinjones.com/posts/index.xml" target="_blank" rel="noopener" aria-label="Subscribe via RSS">
      <svg width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M6.18 17.82a1.82 1.82 0 1 1 0-3.64 1.82 1.82 0 0 1 0 3.64Zm-3-8.18v2.73a8.64 8.64 0 0 1 8.64 8.64h2.73A11.36 11.36 0 0 0 3.18 9.64Zm0-4.09v2.73A15.45 15.45 0 0 1 18.55 23h2.73C21.27 11.73 12.45 2.91 3.18 5.55Z"/></svg>
      <span>Subscribe via RSS</span>
    </a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--newsletter" href="https://buttondown.com/AidanMJ25" target="_blank" rel="noopener">Newsletter via Email</a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--rss" href="https://blog.aidanmaurinjones.com/newsletter/index.xml" target="_blank" rel="noopener" aria-label="Newsletter via RSS">
      <svg width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M6.18 17.82a1.82 1.82 0 1 1 0-3.64 1.82 1.82 0 0 1 0 3.64Zm-3-8.18v2.73a8.64 8.64 0 0 1 8.64 8.64h2.73A11.36 11.36 0 0 0 3.18 9.64Zm0-4.09v2.73A15.45 15.45 0 0 1 18.55 23h2.73C21.27 11.73 12.45 2.91 3.18 5.55Z"/></svg>
      <span>Newsletter via RSS</span>
    </a>
  </div>
</div>

]]></content:encoded></item></channel></rss>