spotify / web-api

This issue tracker is no longer used. Join us in the Spotify for Developers forum for support with the Spotify Web API ➡️ https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
983 stars 79 forks source link

Search for artist/track beginning with string #874

Closed markusvtjohansson closed 6 years ago

markusvtjohansson commented 6 years ago

In Spotify's own applications, if you for instance search for "rih", the artists showing upp will be Rihanna, Rich the Kid, etc. However, when I use the Spotify API search endpoint I receive results exactly matching, or containing, the search string, which in this example would return nothing since there is no artist called "rih". Is it possible to achieve the same behavior as in Spotify's own application using the API, that is searching with a partial string and retrieving results that begin with it?

jsimonsson commented 6 years ago

Try adding a * after rih and you'll get expanded match.

jsimonsson commented 6 years ago

See more here: https://beta.developer.spotify.com/documentation/web-api/reference/search/search/

markusvtjohansson commented 6 years ago

Wow thank you so much, it works perfectly!

jsimonsson commented 6 years ago

👍