Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to get artist by id #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Leogendra
Copy link
Contributor

@Leogendra Leogendra commented Jan 28, 2025

Description

This PR adds a new method to fetch artist details using their Spotify ID, Fixes #13 .

Changes

  • Added get_artist_by_id(self, artist_id: str) -> Mapping[str, Any]
    • Uses queryArtistOverview to retrieve full artist details.

Example Usage

artist = Artist()
data = artist.get_artist_by_id("53XhwfbYqKCa1cC15pYq2q")
print(data)  # Returns full artist details

@Aran404
Copy link
Owner

Aran404 commented Jan 28, 2025

There's a few things that are wrong here. I'll fix it when I have some more time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to retrieve artist popularity?
2 participants