[GH-ISSUE #107] how can i get track by artist? #50

Closed
opened 2026-02-27 23:20:35 +03:00 by kerem · 1 comment
Owner

Originally created by @xgate1 on GitHub (Jul 12, 2016).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/107

how can i get some tracks?
i use sp.search() (example: sp.search('rap god','1','0','track') )
i want to get (rap god-eminem)
what use i query?

Originally created by @xgate1 on GitHub (Jul 12, 2016). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/107 how can i get some tracks? i use sp.search() (example: sp.search('rap god','1','0','track') ) i want to get (rap god-eminem) what use i query?
kerem 2026-02-27 23:20:35 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

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

You can write a more specific query, see https://developer.spotify.com/documentation/web-api/reference/search/search/#writing-a-query---guidelines

query = 'track:"rap god"+artist:"eminem"'
sp.search(query, limit=1, type='track')
<!-- gh-comment-id:570078689 --> @stephanebruckert commented on GitHub (Jan 1, 2020): You can write a more specific `query`, see https://developer.spotify.com/documentation/web-api/reference/search/search/#writing-a-query---guidelines ``` query = 'track:"rap god"+artist:"eminem"' sp.search(query, limit=1, type='track') ```
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#50
No description provided.