Device
HP Spectre x360
Operating System
Microsoft Windows 11 Pro
Browser
Google Chrome Version 104.0.5112.81
My Question or Issue
Using the example ("Doxy" by Miles Davis) for search in the developer console yields no results.
It seems like the API does not (or stopped?) accepting percent-encoding of the 'q' query param. So translating from "remaster%20track:Doxy+artist:Miles%20Davis" (on the input) to "remaster%2520track%3ADoxy%2Bartist%3AMiles%2520Davis" (in the CURL request) breaks it.
Direct link to example: Search for Item | Spotify for Developers
Observed behavior:
curl -X "GET" "https://api.spotify.com/v1/search?q=remaster%2520track%3ADoxy%2Bartist%3AMiles%2520Davis&type=track%2Cartist&market=ES&limit=10&offset=5" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer BQBMXo1D1Em2MT213QJhyzdgTEmMIp3kQ99o5DRQ431u3UKfT-dXroPtjR2QfzhtsIiJ8L3SivUNs8BY8jNBkLstSQFjyxsGYalytyYqN-KZ0pXhNeipeXfqcGEsZFQ3ZtvvuqnDQ-KA3YCutBZuIn5Q0HYLVaQQusFuuFGAyFDWMzU"
{
"artists": {
"href": "https://api.spotify.com/v1/search?query=remaster%2520track%3ADoxy%2Bartist%3AMiles%2520Davis&type=artist&market=ES&locale=en-US%2Cen%3Bq%3D0.9&offset=5&limit=10",
"items": [],
"limit": 10,
"next": null,
"offset": 5,
"previous": "https://api.spotify.com/v1/search?query=remaster%2520track%3ADoxy%2Bartist%3AMiles%2520Davis&type=artist&market=ES&locale=en-US%2Cen%3Bq%3D0.9&offset=0&limit=10",
"total": 0
},
"tracks": {
"href": "https://api.spotify.com/v1/search?query=remaster%2520track%3ADoxy%2Bartist%3AMiles%2520Davis&type=track&market=ES&locale=en-US%2Cen%3Bq%3D0.9&offset=5&limit=10",
"items": [],
"limit": 10,
"next": null,
"offset": 5,
"previous": "https://api.spotify.com/v1/search?query=remaster%2520track%3ADoxy%2Bartist%3AMiles%2520Davis&type=track&market=ES&locale=en-US%2Cen%3Bq%3D0.9&offset=0&limit=10",
"total": 0
}
}