As of the last couple of hours the recommendations endpoint isn't returning tracks related to genre seeds.
example request: https://api.spotify.com/v1/recommendations?seed_artists=&seed_genres=rock&seed_tracks=&limit=20&market=GB
example response:
{
"tracks" : [ ],
"seeds" : [ {"initialPoolSize" : 0, "afterFilteringSize" : 0, "afterRelinkingSize" : 0, "id" : "rock", "type" : "GENRE", "href" : null} ]
}
Recommendations are still returned for artist and track seeds. The response has 249 or 250 for each of the three numeric "seeds" properties, but 0 for genre seeds.
Having the same issue right now.
All genres return an href of null and no recommendations at all.
Only "work around" right now is to add an artist from one of the genres and then a maximum of 4 genres.
Thank you for reporting this, folks. We're looking into the problem further here. I will update this thread when I know more.
I've just checked this again, and it looks like this has been fixed.
Yes, works also for me again
This seems to be broken again.
Example request:
It is just returning an empty response with my query genres sent back to me:
{'tracks': [], 'seeds': [{'initialPoolSize': 0, 'afterFilteringSize': 0, 'afterRelinkingSize': 0, 'id': 'indie rock', 'type': 'GENRE', 'href': None}, {'initialPoolSize': 0, 'afterFilteringSize': 0, 'afterRelinkingSize': 0, 'id': 'modern alternative rock', 'type': 'GENRE', 'href': None}, {'initialPoolSize': 0, 'afterFilteringSize': 0, 'afterRelinkingSize': 0, 'id': 'modern rock', 'type': 'GENRE', 'href': None}]}
This is working OK for me (both yesterday and today), but I don't think the genres you have mentioned are valid.
You can get the valid list from:
https://api.spotify.com/v1/recommendations/available-genre-seeds
The closest valid genre to any of yours is "alt-rock".
https://api.spotify.com/v1/recommendations?seed_genres=alt-rock&limit=20
Note that this list is different from the genres that are returned with artist information.
If you still have any issues - with valid genres - you could try adding the "market" parameter.
Today I have the same issue.
Yes, this same issue seems to have reoccurred today.
Not to pile on, but yes, seeing the same as @yiyangchen & @kkhal.
Same here as well. Getting recommendations by genre has been working well for me for well over six months, then suddenly stopped working last week. Is there any update from Spotify yet?
Me too as well. Things were fine last week for me when requesting by genre_seed but this week the recommendations I get back are empty.
This is happening to me as well.
Happened to me as well...
This is now likely to be not working due to the recent removal of several API endpoints, including this.
https://community.spotify.com/t5/Spotify-for-Developers/Changes-to-Web-API/td-p/6540414