[GH-ISSUE #13] [Question] get stream url for track #11

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

Originally created by @AndreasWidmer on GitHub (May 13, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/13

Hi,

thanks for your time creating this script.
Can you tell if there is a possibility to get the streaming url for a track like the gmusicapi did?

Greetings,
Andreas

Originally created by @AndreasWidmer on GitHub (May 13, 2020). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/13 Hi, thanks for your time creating this script. Can you tell if there is a possibility to get the streaming url for a track like the gmusicapi did? Greetings, Andreas
kerem closed this issue 2026-02-27 22:07:33 +03:00
Author
Owner

@sigma67 commented on GitHub (May 13, 2020):

Hey, this is currently not implemented.

Every song/video on YouTube Music is essentially a YouTube video. Most of this project uses the API music.youtube.com, however when you press 'Play' in YouTube Music, it uses the regular YouTube endpoints. I think the endpoint https://www.youtube.com/get_video_info is used to get video streaming data. Therefore I think getting a streaming URL might be out of scope for this API, since there's many existing APIs for dealing with YouTube videos.

For example, you should be able to use youtube-dl to download the song. There's a sample implementation in tombulled's project.

<!-- gh-comment-id:627957874 --> @sigma67 commented on GitHub (May 13, 2020): Hey, this is currently not implemented. Every song/video on YouTube Music is essentially a YouTube video. Most of this project uses the API music.youtube.com, however when you press 'Play' in YouTube Music, it uses the regular YouTube endpoints. I think the endpoint https://www.youtube.com/get_video_info is used to get video streaming data. Therefore I think getting a streaming URL might be out of scope for this API, since there's many existing APIs for dealing with YouTube videos. For example, you should be able to use `youtube-dl` to download the song. There's a [sample implementation in tombulled's project](https://github.com/tombulled/python-youtube-music/blob/master/ytm/apis/YouTubeMusicDL/__init__.py).
Author
Owner

@AndreasWidmer commented on GitHub (May 13, 2020):

Ah, i see.
Thanks for the clarification and help :)

Thank you & keep up the good work!

<!-- gh-comment-id:627959297 --> @AndreasWidmer commented on GitHub (May 13, 2020): Ah, i see. Thanks for the clarification and help :) Thank you & keep up the good work!
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#11
No description provided.