URI to a track within a particular playlist?

Reply

URI to a track within a particular playlist?

ccarfi
Casual Listener

I can get the URI for a track, no problem.

I can get the URI for a playlist, no problem.

But I can't in the general case figure out how to get the URI for a track that's in the context of a particular playlist. 

 

I'd like to be able to start my player at a particular place within a playlist (say, start at track number 3 instead of the first track), or to start the web player this way.

 

Does anyone know how to do this?

 

Thanks,

Chris

 

P.S. Using the "in context" bit in AppleScript, I can get Spotify to play a particular track within a particular playlist. This is cool, and it works. However, I can't for the life of me figure out how to do that with a URI in the general case.

 

 

 

4 Replies
Highlighted

Re: URI to a track within a particular playlist?

Rock Star 7
Rock Star 7

Hi @ccarfi

 

Unfortunately you can't at the moment. Since playlists are basically just a collection of links to individual songs, when you copy a link to a song, it's linked to that individual song.

 

EDIT: I've put up an Idea Thread, which you can find here. If you want you can give it some kudos and support it. Smiley Wink

MauriceMVRock Star 7
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.
Highlighted

Re: URI to a track within a particular playlist?

ccarfi
Casual Listener

Thanks, @mauriceMV. I've upvoted/kudos'd the Idea. Would be cool if others did, too.

 

I'm surprised this isn't available, since I was hacking around in the Applescript API and you *can* do this with the Applescript API.

Highlighted

Re: URI to a track within a particular playlist?

neilobsidian
Visitor

It looks like this is actually possible although I haven't seen documentation of this anywhere. For anyone else googling to find out how to do this, I'll give you an example URL and URI:

 

URL: https://open.spotify.com/track/1uN7FXCu0SDfV2Lb3SlahC?context=spotify%3Aplaylist%3A7DP7AU926fGTJ00Php2NON
URI: spotify:track:1uN7FXCu0SDfV2Lb3SlahC?context=spotify%3Aplaylist%3A7DP7AU926fGTJ00Php2NON


General format:

URL: https://open.spotify.com/track/TRACK_ID?context=spotify%3Aplaylist%3APLAYLIST_ID
URI: spotify:track:TRACK_ID?context=spotify%3Aplaylist%3APLAYLIST_ID




 

 

 

Highlighted

Re: URI to a track within a particular playlist?

ccarfi
Casual Listener

Thank you neilobsidian! Will check it out.

SUGGESTED POSTS