[PR #17] [MERGED] Add method to get artist by id #43

Closed
opened 2026-02-27 19:06:36 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Aran404/SpotAPI/pull/17
Author: @Leogendra
Created: 1/28/2025
Status: Merged
Merged: 2/1/2025
Merged by: @Aran404

Base: mainHead: feature/get-artist-by-id


📝 Commits (2)

  • 7ab524b Feat: add get_artist_by_id method to fetch artist by id
  • a1aa6b7 Update artist.py

📊 Changes

1 file changed (+36 additions, -0 deletions)

View changed files

📝 spotapi/artist.py (+36 -0)

📄 Description

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Aran404/SpotAPI/pull/17 **Author:** [@Leogendra](https://github.com/Leogendra) **Created:** 1/28/2025 **Status:** ✅ Merged **Merged:** 2/1/2025 **Merged by:** [@Aran404](https://github.com/Aran404) **Base:** `main` ← **Head:** `feature/get-artist-by-id` --- ### 📝 Commits (2) - [`7ab524b`](https://github.com/Aran404/SpotAPI/commit/7ab524bb712dfce740a622498c3a63ccdf22bed0) Feat: add get_artist_by_id method to fetch artist by id - [`a1aa6b7`](https://github.com/Aran404/SpotAPI/commit/a1aa6b70e3062b6ad58c203a778b6e2239007582) Update artist.py ### 📊 Changes **1 file changed** (+36 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `spotapi/artist.py` (+36 -0) </details> ### 📄 Description ### 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 ```python artist = Artist() data = artist.get_artist_by_id("53XhwfbYqKCa1cC15pYq2q") print(data) # Returns full artist details ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 19:06:36 +03:00
kerem changed title from [PR #17] [MERGED] Add method to get artist by id to [PR #17] Add method to get artist by id 2026-03-07 19:38:09 +03:00
kerem changed title from [PR #17] Add method to get artist by id to [PR #17] [MERGED] Add method to get artist by id 2026-03-14 20:22:46 +03:00
Sign in to join this conversation.
No labels
pull-request
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/SpotAPI#43
No description provided.