[GH-ISSUE #155] Retrieve all songs from large library #117

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

Originally created by @b0wter on GitHub (Jan 18, 2021).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/155

I am currently trying to export my complete library form YT music. I've started by exporting all (216) liked songs and it worked perfectly 👍
Next step is to export all songs from my library. My library has more than 5000 tracks. I know that because I've started adding all of them to playlists of 1000 each and have 5 of them while still not being finished.

I am using:

yt.get_library_songs(limit=50000, validate_responses=False, order=None)

and get a total of ~1250 songs. With validate_responses=True I get 2210 songs. I've manually checkd and found songs in the webinterface that did not show in the output.
Is there something I am doing wrong? Or is it a technical limitation by YT Music?

And thanks for all the work you've put in! It's greatly appreciated 🥇

Originally created by @b0wter on GitHub (Jan 18, 2021). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/155 I am currently trying to export my complete library form YT music. I've started by exporting all (216) liked songs and it worked perfectly :+1: Next step is to export all songs from my library. My library has more than 5000 tracks. I know that because I've started adding all of them to playlists of 1000 each and have 5 of them while still not being finished. I am using: ``` yt.get_library_songs(limit=50000, validate_responses=False, order=None) ``` and get a total of ~1250 songs. With `validate_responses=True` I get 2210 songs. I've manually checkd and found songs in the webinterface that did not show in the output. Is there something I am doing wrong? Or is it a technical limitation by YT Music? And thanks for all the work you've put in! It's greatly appreciated :1st_place_medal:
kerem closed this issue 2026-02-27 22:08:08 +03:00
Author
Owner

@sigma67 commented on GitHub (Jan 18, 2021):

Unfortunately it is a YouTube Music limitation, that endpoint is very flaky. Not much we can do here.

Have you tried using Google Takeout?

<!-- gh-comment-id:762153332 --> @sigma67 commented on GitHub (Jan 18, 2021): Unfortunately it is a YouTube Music limitation, that endpoint is very flaky. Not much we can do here. Have you tried using [Google Takeout](https://takeout.google.com/)?
Author
Owner

@b0wter commented on GitHub (Jan 18, 2021):

Thanks for the fast reply. I was dreading that response. I've tried the takeout but for reasons I do not understand it only contains all my uploads. Guess I'll go and make a support request at Google to get the other data as well.

<!-- gh-comment-id:762155404 --> @b0wter commented on GitHub (Jan 18, 2021): Thanks for the fast reply. I was dreading that response. I've tried the takeout but for reasons I do not understand it only contains all my uploads. Guess I'll go and make a support request at Google to get the other data as well.
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#117
No description provided.