Spotify Search API does not return tracks if the query is an artist name

Reply
Highlighted

Spotify Search API does not return tracks if the query is an artist name

Regular

GET https://api.spotify.com/v1/search

 

When I use the above Spotify Web Search API with type=track and q={some artist name}, the API (usually) returns no results. For example, If I search "Cage the Elephant" or "Kanye West" the API will return no results rather than tracks by those artists. Is this a known bug with the API? I should be able to query tracks by artist name as I can in the Spotify App.

1 Reply
Highlighted

Re: Spotify Search API does not return tracks if the query is an artist name

Rock Star 16
Rock Star 16

Hey @PassAuxly, help's here!

I've taken a look and it seems that I'm not able to replicate this on my end. I made this request:

https://api.spotify.com/v1/search?q=Cage%20The%20Elephant&type=track

And this is the response I received: https://pastebin.com/zKm2KgNs which looks expected to me.

 

Could you tell me the exact request you made? I'll do some digging.

 

Thanks, have a good one,

Hubo

 

HuboRock Star 16
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.
SUGGESTED POSTS