Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Can't search specific track by Search API

Solved!

Can't search specific track by Search API

Plan

Free/Premium

 

Country

IT

Device

API SEARCH

 

Operating System

Online api test.

 

My Question or Issue

 

Hello, when i try to use the search API from my server or by online spotify website, i can't find some Track. For example:

 

Artist: Coldplay

Track: feelslikeimfallinginlove

 

But api return in this case: spotify:track:2nvC4i2aMo4CzRjRflysah

 

 

q: remaster%20track:feelslikeimfallinginlove%20artist:coldplay

 

Screenshot 2024-07-25 alle 14.47.40.png
Screenshot 2024-07-25 alle 14.47.43.png
Reply

Accepted Solutions
Marked as solution

Thank you for coming back to this post! I appreciate your patience as we work through this issue together.

 

I believe I understand the problem you're experiencing. When I search for a track, I use plain text without adding URL-encoded characters, such as percent signs (%), and it seems to work correctly. For example, I simply leave spaces as they are, rather than encoding them.

 

It seems that including percent signs in your query might be causing some issues with incorrect encoding.

 

Here’s what I recommend: try writing your query as plain text first, and then let a URL encoding function in your code encode the string. This should help resolve the issue you're facing.

 

Please let me know if this helps or if you have any other questions.

XimzendSpotify Star
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.

View solution in original post

Marked as solution

Removing spaces in q between track: NameOfSong and doing track:NameOfSong

solve the problem.

View solution in original post

6 Replies

Another case:

 

Track: Perchè No

Artist: Lucio Battisti

 

Result: 

        "href": "https://api.spotify.com/v1/tracks/2SvXqxiG2ntfkEWvuABT7u",        "id": "2SvXqxiG2ntfkEWvuABT7u",        "is_playable": true,        "name": "Il mio canto libero",        "popularity": 61,        "preview_url": "https://p.scdn.co/mp3-preview/18a42a836437d7deaf3b3b0d614af255ad9e0827?cid=cfe923b2d660439caf2b557b21f31221",        "track_number": 8,        "type": "track",        "uri": "spotify:track:2SvXqxiG2ntfkEWvuABT7u",        "is_local": false

 

Request: 

curl --request GET \
  --url 'https://api.spotify.com/v1/search?q=remaster%2520track%3APerch%C3%A8+No%2520artist%3ALucio+Battisti&type=track&market=IT&limit=1' \
  --header 'Authorization:

Hi AntoW,

 

I noticed that you're including "remaster" in your search queries. This term is part of the pre-filled data to show how you might search for a remastered album, but you don't need to include it in your own searches.

 

Could you try removing the word "remaster" from your query and see if you get the results you're expecting?

 

Let me know if this helps or if you have any other questions!

XimzendSpotify Star
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.

Without Remaster i get "NO RESULT" for either songs.

 

Screenshot 2024-07-26 alle 16.05.47.png

 

Screenshot 2024-07-26 alle 16.06.19.png

  

 

 

 

Marked as solution

Thank you for coming back to this post! I appreciate your patience as we work through this issue together.

 

I believe I understand the problem you're experiencing. When I search for a track, I use plain text without adding URL-encoded characters, such as percent signs (%), and it seems to work correctly. For example, I simply leave spaces as they are, rather than encoding them.

 

It seems that including percent signs in your query might be causing some issues with incorrect encoding.

 

Here’s what I recommend: try writing your query as plain text first, and then let a URL encoding function in your code encode the string. This should help resolve the issue you're facing.

 

Please let me know if this helps or if you have any other questions.

XimzendSpotify Star
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.

Thank for your effort. The issue remain.

 

Q: track: Perchè No artist: Lucio battisti

 

Result showing song: "Il mio canto Liberto lucio Battisti"

 

Also for Coldplay

 

Q: track: feelslikeimfallinginlove artist: Coldplay

 

Result song: Yellow Coldplay

 

 

Screenshot 2024-07-29 alle 09.13.41.png
Screenshot 2024-07-29 alle 09.13.36.png
Marked as solution

Removing spaces in q between track: NameOfSong and doing track:NameOfSong

solve the problem.

Suggested posts