[GH-ISSUE #1137] Adding a custom date range for users top tracks and top artist #670

Closed
opened 2026-02-28 00:00:43 +03:00 by kerem · 1 comment
Owner

Originally created by @ablake12 on GitHub (Jun 19, 2024).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1137

Hi I'm trying to use the current_user_top_tracks and current_user_top_artists methods to get a user's top artists and tracks. However, the only option that's given for date range is short_term, medium_term, and long_term. Could I request for it to allow custom date ranges as parameters? So for example, adding a start date of 01/01/2024 and an end date of 06/30/2024 and the function would return the top artists or top tracks between that time range. Thank you!

Originally created by @ablake12 on GitHub (Jun 19, 2024). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1137 Hi I'm trying to use the current_user_top_tracks and current_user_top_artists methods to get a user's top artists and tracks. However, the only option that's given for date range is short_term, medium_term, and long_term. Could I request for it to allow custom date ranges as parameters? So for example, adding a start date of 01/01/2024 and an end date of 06/30/2024 and the function would return the top artists or top tracks between that time range. Thank you!
kerem 2026-02-28 00:00:43 +03:00
Author
Owner

@dieser-niko commented on GitHub (Jun 19, 2024):

Spotipy can only use what is available in the Spotify API. As we are not affiliated with Spotify, we are unable to implement this change. However, you could try posting on the Spotify forum.

<!-- gh-comment-id:2177839754 --> @dieser-niko commented on GitHub (Jun 19, 2024): Spotipy can only use what is available in the Spotify API. As we are not affiliated with Spotify, we are unable to implement this change. However, you could try posting on the Spotify forum.
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#670
No description provided.