[GH-ISSUE #78] Is it possible to download a song? #57

Closed
opened 2026-02-27 22:07:47 +03:00 by kerem · 2 comments
Owner

Originally created by @lukas4haus on GitHub (Sep 12, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/78

Hi,
I am migrating from gmusicapi.
I am missing one essential feature that initially made me subscribe to Google Play Music instead of Spotify, which is the ability to download songs/albums using the api.

I have no idea if this was ever intended to be public, but I have been using this api for the last years to in a simple to use streaming client used by my children.

Did I miss this function in the documentation?
If not, is there any chance for it to be added in the near future?

Best regards,
Lukas

Originally created by @lukas4haus on GitHub (Sep 12, 2020). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/78 Hi, I am migrating from gmusicapi. I am missing one essential feature that initially made me subscribe to Google Play Music instead of Spotify, which is the ability to download songs/albums using the api. I have no idea if this was ever intended to be public, but I have been using this api for the last years to in a simple to use streaming client used by my children. Did I miss this function in the documentation? If not, is there any chance for it to be added in the near future? Best regards, Lukas
kerem closed this issue 2026-02-27 22:07:47 +03:00
Author
Owner

@sigma67 commented on GitHub (Sep 12, 2020):

Yes, you can download any video/song using its videoId and youtube-dl.

get_song also provides the streaming URLs provided by the YouTube API.

<!-- gh-comment-id:691532327 --> @sigma67 commented on GitHub (Sep 12, 2020): Yes, you can download any video/song using its videoId and [youtube-dl](https://github.com/ytdl-org/youtube-dl). `get_song` also provides the streaming URLs provided by the YouTube API.
Author
Owner

@lukas4haus commented on GitHub (Sep 13, 2020):

I am sorry to bother you again, but I do not get it.

get_song does only provide me with an url for the thumbnails.

As far as I understand, the signatureCipher of one of the streams has to be somehow converted to retrieve the download url.
Is it therefore necessary that the converting library also has valid credentials for youtube?

youtube-dl has issues accepting my login and also reports that it is unable to extract the video data.

Could you provide a short example of how to download a song with / without youtube-dl?

Best regards,
Lukas

<!-- gh-comment-id:691666766 --> @lukas4haus commented on GitHub (Sep 13, 2020): I am sorry to bother you again, but I do not get it. get_song does only provide me with an url for the thumbnails. As far as I understand, the signatureCipher of one of the streams has to be somehow converted to retrieve the download url. Is it therefore necessary that the converting library also has valid credentials for youtube? youtube-dl has issues accepting my login and also reports that it is unable to extract the video data. Could you provide a short example of how to download a song with / without youtube-dl? Best regards, Lukas
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/ytmusicapi#57
No description provided.