[GH-ISSUE #857] How many days is long_term / medium_term / short_term? #528

Closed
opened 2026-02-27 23:23:08 +03:00 by kerem · 2 comments
Owner

Originally created by @ferkrodriguez98 on GitHub (Sep 17, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/857

Hey guys, really cool project!

I was just wondering since I couldn't find it anywhere what does exactly long_term, medium_term and short_term mean when fetching user's top tracks for example. Is it all-time, one year and 30 days?

Thanks!

Originally created by @ferkrodriguez98 on GitHub (Sep 17, 2022). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/857 <!--- Please make sure you've: - read the FAQ https://github.com/plamere/spotipy/blob/master/FAQ.md - read the documentation https://spotipy.readthedocs.io/en/latest/ - searched older issues If your question is about code, please share the code you are using ---> Hey guys, really cool project! I was just wondering since I couldn't find it anywhere what does exactly long_term, medium_term and short_term mean when fetching user's top tracks for example. Is it all-time, one year and 30 days? Thanks!
kerem 2026-02-27 23:23:08 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@dpnem commented on GitHub (Sep 18, 2022):

I found this at https://developer.spotify.com/documentation/web-api/reference/#/operations/get-users-top-artists-and-tracks

Over what time frame the affinities are computed. Valid values: long_term (calculated from several years of data and including all new data as it becomes available), medium_term (approximately last 6 months), short_term (approximately last 4 weeks). Default: medium_term

<!-- gh-comment-id:1250240989 --> @dpnem commented on GitHub (Sep 18, 2022): I found this at https://developer.spotify.com/documentation/web-api/reference/#/operations/get-users-top-artists-and-tracks > Over what time frame the affinities are computed. Valid values: long_term (calculated from several years of data and including all new data as it becomes available), medium_term (approximately last 6 months), short_term (approximately last 4 weeks). Default: medium_term
Author
Owner

@ferkrodriguez98 commented on GitHub (Sep 19, 2022):

Thank you!

<!-- gh-comment-id:1251648250 --> @ferkrodriguez98 commented on GitHub (Sep 19, 2022): Thank you!
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#528
No description provided.