[GH-ISSUE #117] How can I get the time of release of a song or an album #53

Closed
opened 2026-02-27 23:20:36 +03:00 by kerem · 4 comments
Owner

Originally created by @RajarshiBhadra on GitHub (Sep 13, 2016).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/117

I was going through spotipy and its awsome. I was hoping to extract the time of release of an album or song. Any help in this regard would be greatly appreciated

Originally created by @RajarshiBhadra on GitHub (Sep 13, 2016). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/117 I was going through spotipy and its awsome. I was hoping to extract the time of release of an album or song. Any help in this regard would be greatly appreciated
kerem closed this issue 2026-02-27 23:20:36 +03:00
Author
Owner

@bentappin commented on GitHub (Sep 13, 2016):

Do you mean the release date?

It's in the Web API return for an album and in the return from the Spotipy album call.

In [6]: ret = api.album('spotify:album:3j8VO8KmIeFACN1ZpEeasY')

In [7]: ret['release_date']
Out[7]: '2016-06-10'

In [8]: ret['release_date_precision']
Out[8]: 'day'
<!-- gh-comment-id:246666599 --> @bentappin commented on GitHub (Sep 13, 2016): Do you mean the release date? It's in the Web API return for an [album](https://developer.spotify.com/web-api/get-album/) and in the return from the Spotipy album call. ``` In [6]: ret = api.album('spotify:album:3j8VO8KmIeFACN1ZpEeasY') In [7]: ret['release_date'] Out[7]: '2016-06-10' In [8]: ret['release_date_precision'] Out[8]: 'day' ```
Author
Owner

@RajarshiBhadra commented on GitHub (Sep 13, 2016):

Yes I meant release date. However I would like to see it by track instaed of album. Is it possible?

<!-- gh-comment-id:246673239 --> @RajarshiBhadra commented on GitHub (Sep 13, 2016): Yes I meant release date. However I would like to see it by track instaed of album. Is it possible?
Author
Owner

@bentappin commented on GitHub (Sep 13, 2016):

Did you check the docs?

It's not in the track return call but you can get the album ID from the track response, and then get the album data in a separate call.

<!-- gh-comment-id:246674022 --> @bentappin commented on GitHub (Sep 13, 2016): Did you check the [docs](https://developer.spotify.com/web-api/get-track/)? It's not in the track return call but you can get the album ID from the track response, and then get the album data in a separate call.
Author
Owner

@RajarshiBhadra commented on GitHub (Sep 13, 2016):

Thanks. That did it

<!-- gh-comment-id:246682425 --> @RajarshiBhadra commented on GitHub (Sep 13, 2016): Thanks. That did it
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#53
No description provided.