Problem with linking to search for track plus artist

Something seem to have changed in how one links to a spotify search. The following code should work:

<a href="spotify:search:track:castle+on+the+hill+artist:ed+sheeran">spotify:search:track:castle on the hill artist:ed sheeran</a>

When Spotify opens it says No result found for "track:castle+on+the+hill+artist:ed+sheeran"

We have also tried percent encoding:

<a href="spotify:search:track:castle%20on%20the%20hill%20artist:ed%20sheeran">Castle on the hill Ed Sheeran</a>

But this also fails, as does other combinations.

Any advice on how to properly link to a Spotify search?

This works:

<a href="spotify:search:artist%3Awndr">artist:wndr</a>
<a href="spotify:search:track%3AMedicine">track%3AMedicine</a>

 

 

 

 

 

Hey!
We've not heard anything from you in the past few days so we are going to close this issue report
If you're still experiencing drop a comment down below and we'll reopen this report!
Have an amazing day and Keep Rocking!
/ES

Status: Closed
0 Likes
Comments
Moderator
Moderator
Status changed to: Need more info

Hey @mskogly

 

Thanks for getting in touch. 

 

Just to check - have you tried using these options? 

 

Hope that helps.

mskogly
Gig Goer

Yes. I Tried the AND combination, with 

 

<a href="spotify:search:Kyuss%20AND%20Green">Kyuss AND Green</a>

 

It might only be a problem with url encoding, just can't figure out what format you want. 

Moderator
Moderator

Thanks for that info. 

 

Currently, it's not possible to search for a song and artist at the same time using a code. You can search for songs or artists, but separately. 

 

I gave it a try with castle on the hill AND Ed Sheeran and it worked out fine. 

Let us know if that helps.

Rock Star
Rock Star
Status changed to: Closed

Hey!
We've not heard anything from you in the past few days so we are going to close this issue report
If you're still experiencing drop a comment down below and we'll reopen this report!
Have an amazing day and Keep Rocking!
/ES

mskogly
Gig Goer

I got help from spotifycares on twitter. I is possible to combine artist and track. Wrote about the solution here: https://pappmaskin.no/2017/02/linking-to-a-spotify-search-with-both-track-and-artist/