[GH-ISSUE #569] Error/bug when searching for specific artist's albums #337

Closed
opened 2026-02-27 23:22:04 +03:00 by kerem · 2 comments
Owner

Originally created by @deniseismo on GitHub (Sep 2, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/569

A search for an album seems to malfunction a little:
the bug that I've found so far is when you search for any Kraftwerk's album other than Autobahn you get nothing.

query = 'album:Computerwelt artist:Kraftwerk'
spotify.search(q=query, type="album", limit=20)

JSON response:

{
    "albums": {
        "href": "https://api.spotify.com/v1/search?query=album%3AComputerwelt+artist%3AKraftwerk&type=album&offset=0&limit=20",
        "items": [],
        "limit": 20,
        "next": null,
        "offset": 0,
        "previous": null,
        "total": 0
    }
}

Same for any of these albums : Kraftwerk, Kraftwerk 2, Ralf und Florian, Radio-Aktivität, The Man-Machine. Oddly enough, searching for Autobahn does work.

A GET request with the same query (as well as the search via Spotify's console) return the correct response.

Originally created by @deniseismo on GitHub (Sep 2, 2020). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/569 A search for an album seems to malfunction a little: the bug that I've found so far is when you search for any Kraftwerk's album other than _Autobahn_ you get nothing. ``` query = 'album:Computerwelt artist:Kraftwerk' spotify.search(q=query, type="album", limit=20) ``` **JSON response:** ``` { "albums": { "href": "https://api.spotify.com/v1/search?query=album%3AComputerwelt+artist%3AKraftwerk&type=album&offset=0&limit=20", "items": [], "limit": 20, "next": null, "offset": 0, "previous": null, "total": 0 } } ``` Same for any of these albums : _Kraftwerk, Kraftwerk 2, Ralf und Florian, Radio-Aktivität, The Man-Machine_. Oddly enough, searching for _Autobahn_ **does** work. A GET request with the same query (as well as [the search via Spotify's console](https://developer.spotify.com/console/get-search-item/?q=album%3AComputerwelt%20artist%3AKraftwerk&type=album&market=&limit=&offset=)) return the correct response.
kerem 2026-02-27 23:22:04 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@stephanebruckert commented on GitHub (Sep 2, 2020):

See https://github.com/plamere/spotipy/blob/master/FAQ.md#search-doesnt-find-some-tracks

<!-- gh-comment-id:685746066 --> @stephanebruckert commented on GitHub (Sep 2, 2020): See https://github.com/plamere/spotipy/blob/master/FAQ.md#search-doesnt-find-some-tracks
Author
Owner

@stephanebruckert commented on GitHub (Sep 7, 2020):

let us know if this works:

spotify.search(q=query, type="album", limit=20, market="DE")
<!-- gh-comment-id:688313368 --> @stephanebruckert commented on GitHub (Sep 7, 2020): let us know if this works: spotify.search(q=query, type="album", limit=20, market="DE")
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#337
No description provided.