Hey @DavidBerna
I can help you by explaining it. 🙂
First, I show you 3 Spotify urls and 3 Spotify URI's for artist, album and song. The asterisks are added to keep them from turning into play buttons.
This is the URL (website address)
https:*//open.spotify.com/album/27ftYHLeunzcSzb33Wk1hf
https:*//open.spotify.com/artist/3mvkWMe6swnknwscwvGCHO
https:*//open.spotify.com/track/7lEptt4wbM0yJTvSG5EBof
In the desktop Spotify client you can get it by clicking the three dots on song/album/artist, going to Share and selecting "Copy song/album/artist link".
This is the URI
spotify:album:27ftYHLeunzcSzb33Wk1hf
spotify:artist:3mvkWMe6swnknwscwvGCHO
spotify:track:7lEptt4wbM0yJTvSG5EBof
You can get it when you choose "Copy Spotify URI" in the Share section, but only in the desktop client!
What's common between the two is this long line of code (eg. 27ftYHLeunzcSzb33Wk1hf) and whether it's an album, artist or a song.
So when you've got a Spotify url and you need to turn it into an URI, or vice versa, it's very simple.
You can get both website addresses and URI's for your playlists and profile as well. Playlist ones appear longer than others and asterisks are added to avoid play buttons.
URL (website address)
https://*open.spotify.com/user/1185903410
https://*open.spotify.com/user/1185903410/playlist/6YAnJeVC7tgOiocOG23Dd
URI
spotify:user:1185903410
spotify:user:1185903410:playlist:6YAnJeVC7tgOiocOG23Dd
Basically, when you want to turn an URL into URI, then delete everything except for 'spotify', 'artist'/'song'/'album'/'user' and 'playlist' and the lengthy code, and then add colons between them.
Note: when you copy the website address from Spotify, it's even longer now than it was before - see this example:
https://o*pen.spotify.com/track/15J6PrzKaLtvw0dBr9sq72?si=sBS05mmQRv6qo2udnQNUPw
You don't need "?si=sBS05mmQRv6qo2udnQNUPw" included in your URI. Both website address and the URI work perfectly fine without it.
I also suggest reading this article for more information about sharing playlists and other Spotify content. 🙂
If you have more questions, feel free to ask - I'm happy to help!
SebastySpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.