No recommendations being returned when querying by artist

Reply

No recommendations being returned when querying by artist

mcrawford620
Gig Goer

Many artist ids are not returning any recommendations from the API. I'm assuming this is a bug.

 

Just a couple of examples, using the developer console, omitting the authentication bearer part of the header:

curl -X "GET" "https://api.spotify.com/v1/recommendations?market=US&seed_artists=5hAhrnb0Ch4ODwWu4tsbpi" -H "Accept: application/json" -H "Content-Type: application/json"
curl -X "GET" "https://api.spotify.com/v1/recommendations?market=US&seed_artists=2YZyLoL8N0Wb9xBt1NhZWg" -H "Accept: application/json" -H "Content-Type: application/json"

 

5 Replies

murraypaul
Gig Goer
I've just tried both of those in the developer console and they returned results.

Perhaps there was a temporary issue?

mcrawford620
Gig Goer
I'm still getting nothing returned for some artists, including those two I posted. Results are the same whether through the developer console or directly to the API from my app. I'm trying popular artists, so it isn't just that the artists are new or obscure. I would say that most of the artists work, but some still do not.

murraypaul
Gig Goer

Odd, I've just tried again, copied your first line and added my own authorisation to the end, and it returns values. So possibly something to do with your account?



$ curl -X "GET" "https://api.spotify.com/v1/recommendations?market=US&seed_artists=5hAhrnb0Ch4ODwWu4tsbpi" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer xxx"



{
"tracks" : [ {
"album" : {
"album_type" : "ALBUM",
"artists" : [ {
"external_urls" : {
"spotify" : "https://open.spotify.com/artist/2iUVQjheBnvOt8vaBrxXJz"
},
"href" : "https://api.spotify.com/v1/artists/2iUVQjheBnvOt8vaBrxXJz",
"id" : "2iUVQjheBnvOt8vaBrxXJz",
"name" : "Cass McCombs",
"type" : "artist",
"uri" : "spotify:artist:2iUVQjheBnvOt8vaBrxXJz"
} ],

mcrawford620
Gig Goer
Thanks for trying it out, that's really odd. Or maybe they are rolling out a fix and it takes a while to get to all the servers? If it was something with my account I would expect everything not to work (like a rate limit or something), but not some artists. But who knows.

mcrawford620
Gig Goer
Now it's broken again.
SUGGESTED POSTS