Quick and dirty script for transfering a playlist on Apple Music to Spotify.
- Node.js version 18 or later
- A Spotify client ID and secret
- Visit https://developer.spotify.com/dashboard
- Create an application
- Fill in app name, description & website with whatever you want
- In Redirect URI enter:
http://localhost:46851/spot-callback
- Select
Web API
and agree to the terms - Go to the newly created app's settings
- Copy the Client ID and Client Secret
- An Apple Music playlist ID
- Click Share on the playlist, copy URL, and you'll get a string that starts with 'pl.u-' followed by 16 random letters & numbers.
- For example, for
https://music.apple.com/gb/playlist/pl.u-GgA5epRuZJLoYPG
, the ID ispl.u-GgA5epRuZJLoYPG
- A Spotify playlist ID
- Right click the playlist, and Share, hold Alt and select 'Copy Spotify URI', and you'll get a string like
spotify:playlist:1PR4TOMefHGTfmyxzm71bw
- You just want the 22-ish character long string (for example
1PR4TOMefHGTfmyxzm71bw
)
- Right click the playlist, and Share, hold Alt and select 'Copy Spotify URI', and you'll get a string like
- Download the script as a zip file.
- Edit the
config.mjs
file, filling in the details you collected from the above - Run the script with
node index.mjs