[GH-ISSUE #376] Unable to search artists (Hebrew language) #222

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

Originally created by @dorsht on GitHub (May 15, 2019).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/376

Hello,

I'm trying to use spotipy in order to find some data about songs.
It works flawlessly with English, but when I'm trying to work with Hebrew, there are no results.
I tried to search the problem in Google, but I couldn't find anything relevant.
Code example:
client_credentials_manager = SpotifyClientCredentials(Some user info...)
spotify = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
name = 'שלמה ארצי'
results = spotify.search(q='artist:'+name, type='artist')
print(results)

When I tried to search the artist with English name, It worked also.

Thank You.

Originally created by @dorsht on GitHub (May 15, 2019). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/376 Hello, I'm trying to use spotipy in order to find some data about songs. It works flawlessly with English, but when I'm trying to work with Hebrew, there are no results. I tried to search the problem in Google, but I couldn't find anything relevant. Code example: client_credentials_manager = SpotifyClientCredentials(Some user info...) spotify = spotipy.Spotify(client_credentials_manager=client_credentials_manager) name = 'שלמה ארצי' results = spotify.search(q='artist:'+name, type='artist') print(results) When I tried to search the artist with English name, It worked also. Thank You.
kerem closed this issue 2026-02-27 23:21:28 +03:00
Author
Owner

@stephanebruckert commented on GitHub (Jan 12, 2020):

Hi, this works:

spotify.search(q='שלמה ארצי', type='artist')

No need for artist: because you already specify type='artist'. Read more about query here https://developer.spotify.com/documentation/web-api/reference-beta/#writing-a-query---guidelines.

We will try to include this "how-to" in the spotipy doc and as part of https://github.com/plamere/spotipy/issues/268

<!-- gh-comment-id:573404855 --> @stephanebruckert commented on GitHub (Jan 12, 2020): Hi, this works: spotify.search(q='שלמה ארצי', type='artist') ~~No need for `artist:` because you already specify `type='artist'`. Read more about `query` here https://developer.spotify.com/documentation/web-api/reference-beta/#writing-a-query---guidelines.~~ ~~We will try to include this "how-to" in the spotipy doc and as part of https://github.com/plamere/spotipy/issues/268~~
Author
Owner

@stephanebruckert commented on GitHub (Jan 12, 2020):

You were correct, I just found that "artist:'שלמה ארצי'" does not work while "artist:'Eminem'" does.

I created the issue in web-api for you https://github.com/spotify/web-api/issues/1435

<!-- gh-comment-id:573410619 --> @stephanebruckert commented on GitHub (Jan 12, 2020): You were correct, I just found that [`"artist:'שלמה ארצי'"`](https://developer.spotify.com/console/get-search-item/?q=%22artist%3A%27%D7%A9%D7%9C%D7%9E%D7%94%20%D7%90%D7%A8%D7%A6%D7%99%27%22&type=artist&market=&limit=&offset=) does not work while [`"artist:'Eminem'"`](https://developer.spotify.com/console/get-search-item/?q=%22artist:%27Eminem%27%22&type=artist&market=&limit=&offset=) does. I created the issue in web-api for you https://github.com/spotify/web-api/issues/1435
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#222
No description provided.