Help Wizard

Step 1

NEXT STEP

Right search query

Right search query

Hi folks.

 

How to use the Search API correctly?

I need to search songs with the name "some body", I use a query:

https://api.spotify.com/v1/search?q=some%20body&type=track

But when executed, in the response, %20 is replaced with +, this happens in the Spotify Console, and via Python Requests, could this be a problem?

"href": "https://api.spotify.com/v1/search?query=some+body&type=track&offset=0&limit=20",

But I get a bunch of results that don't match the search. I've tried using double quotes, but that doesn't help.

Screenshot 2021-02-09 093057.png

Or rather, I would just like to search for songs by title the way the Spotify app does.
How to do it?

Screenshot 2021-02-09 093419.png

Screenshot 2021-02-09 101253.png

It seems to work fine sometimes, is it normal or not?

Reply
0 Replies

Suggested posts