mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #496] How to search for artists for their genres? #296
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#296
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @psenoglu on GitHub (May 22, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/496
Hello,
I am trying to get the genres of the artist with the sp search.
Spotify provides this information already with their Search for an Item APIs. Since I have already tried with the following code, there comes no genre in the output.
The code I used:
I am really a beginner so I appreciate any help.
Thanks in advance.
@ritiek commented on GitHub (May 22, 2020):
Hi! You need to explicitly specify in
sp.searchthat you wish to search for artists (otherwise the search will default to tracks). For example:@psenoglu commented on GitHub (May 22, 2020):
thanks a lot @ritiek