Spotify Search API doesn't return results for certain songs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Plan
Premium
Country
United Kingdom
Device
API
Operating System
Windows 10
My Question or Issue
Hi, I've seen similar issues reported, but with no follow up answers so I was wondering if anyone could help with my query. I am writing a little program that searches spotify's database for songs, as part of a larger project involving metadata for my local MP3 files. I have run into an issue where I found a certain song results in no results being returned from spotify, however on their sandbox web test [ found here ] It works just fine! Please see the results from python here:
https://i.imgur.com/nMEMxPu.png
{'tracks': {'href': 'https://api.spotify.com/v1/search?query=+Queen+Vs+The+Miami+Project+Another+One+Bites&type=track&offset=0&limit=1', 'items': [], 'limit': 1, 'next': None, 'offset': 0, 'previous': None, 'total': 0}}
And here is the response from spotify's web sandbox that was linked above:
{ "tracks": { "href": "https://api.spotify.com/v1/search?query=Queen+Vs+The+Miami+Project+another+one+bites+the+dust&type=track&offset=0&limit=1", "items": [ { "album": { "album_type": "single", "artists": [ { "external_urls": { "spotify": "https://open.spotify.com/artist/2YOWSQQzKRsipesbtg9z99" }, "href": "https://api.spotify.com/v1/artists/2YOWSQQzKRsipesbtg9z99", "id": "2YOWSQQzKRsipesbtg9z99", "name": "Queen vs The Miami Project", "type": "artist", "uri": "spotify:artist:2YOWSQQzKRsipesbtg9z99" } ], "available_markets": [ "AD", "AE", "AL", "AR", "AT", "AU", "BA", "BD", "BE", "BG", "BH", "BO", "BR", "BY", "CH", "CL", "CO", "CR", "CY", "CZ", "DE", "DK", "DO", "DZ", "EC", "EE", "EG", "ES", "FI", "FR", "GB", "GH", "GR", "GT", "HK", "HN", "HR", "HU", "ID", "IE", "IL", "IN", "IS", "IT", "JO", "JP", "KE", "KR", "KW", "KZ", "LB", "LI", "LK", "LT", "LU", "LV", "MA", "MC", "MD", "ME", "MK", "MT", "MX", "MY", "NG", "NI", "NL", "NO", "NZ", "OM", "PA", "PE", "PH", "PK", "PL", "PS", "PT", "PY", "QA", "RO", "RS", "RU", "SA", "SE", "SG", "SI", "SK", "SV", "TH", "TN", "TR", "TW", "TZ", "UA", "UG", "UY", "VN", "XK", "ZA" ], "external_urls": { "spotify": "https://open.spotify.com/album/2n1Az4Mwhf0jWdlflSdWx9" }, "href": "https://api.spotify.com/v1/albums/2n1Az4Mwhf0jWdlflSdWx9", "id": "2n1Az4Mwhf0jWdlflSdWx9", "images": [ { "height": 640, "url": "https://i.scdn.co/image/ab67616d0000b2733117e19e65f3288f5a583b0e", "width": 640 }, { "height": 300, "url": "https://i.scdn.co/image/ab67616d00001e023117e19e65f3288f5a583b0e", "width": 300 }, { "height": 64, "url": "https://i.scdn.co/image/ab67616d000048513117e19e65f3288f5a583b0e", "width": 64 } ], "name": "Another One Bites The Dust", "release_date": "2006-12-08", "release_date_precision": "day", "total_tracks": 6, "type": "album", "uri": "spotify:album:2n1Az4Mwhf0jWdlflSdWx9" }, "artists": [ { "external_urls": { "spotify": "https://open.spotify.com/artist/2YOWSQQzKRsipesbtg9z99" }, "href": "https://api.spotify.com/v1/artists/2YOWSQQzKRsipesbtg9z99", "id": "2YOWSQQzKRsipesbtg9z99", "name": "Queen vs The Miami Project", "type": "artist", "uri": "spotify:artist:2YOWSQQzKRsipesbtg9z99" } ], "available_markets": [ "AD", "AE", "AL", "AR", "AT", "AU", "BA", "BD", "BE", "BG", "BH", "BO", "BR", "BY", "CH", "CL", "CO", "CR", "CY", "CZ", "DE", "DK", "DO", "DZ", "EC", "EE", "EG", "ES", "FI", "FR", "GB", "GH", "GR", "GT", "HK", "HN", "HR", "HU", "ID", "IE", "IL", "IN", "IS", "IT", "JO", "JP", "KE", "KR", "KW", "KZ", "LB", "LI", "LK", "LT", "LU", "LV", "MA", "MC", "MD", "ME", "MK", "MT", "MX", "MY", "NG", "NI", "NL", "NO", "NZ", "OM", "PA", "PE", "PH", "PK", "PL", "PS", "PT", "PY", "QA", "RO", "RS", "RU", "SA", "SE", "SG", "SI", "SK", "SV", "TH", "TN", "TR", "TW", "TZ", "UA", "UG", "UY", "VN", "XK", "ZA" ], "disc_number": 1, "duration_ms": 202162, "explicit": false, "external_ids": { "isrc": "GBCEE0600225" }, "external_urls": { "spotify": "https://open.spotify.com/track/24o6TCzFxeI4WUejspf9y4" }, "href": "https://api.spotify.com/v1/tracks/24o6TCzFxeI4WUejspf9y4", "id": "24o6TCzFxeI4WUejspf9y4", "is_local": false, "name": "Another One Bites The Dust - Cedric Gervais & Second Sun Radio Edit", "popularity": 20, "preview_url": "https://p.scdn.co/mp3-preview/1264fb0099239c385db8a72de982c56abc6bc5f9?cid=774b29d4f13844c495f206cafdad9c86", "track_number": 1, "type": "track", "uri": "spotify:track:24o6TCzFxeI4WUejspf9y4" } ], "limit": 1, "next": "https://api.spotify.com/v1/search?query=Queen+Vs+The+Miami+Project+another+one+bites+the+dust&type=track&offset=1&limit=1", "offset": 0, "previous": null, "total": 8 } }
Any help or a fix to this bug would be greatly welcomed.
Looking forward to hearing back,
Matt
- Labels:
-
api
-
Python
-
Search API
-
Search Track
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page