[GH-ISSUE #740] get_playlist() : get_playlist does not return all songs when limit = None #479

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

Originally created by @tyagidevansh on GitHub (Feb 4, 2025).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/740

Describe the bug
get_playlist(playlist_id, None, True, 0) returns 99 songs even though the playlist is over 300 songs. As far as I can tell, there's no pagination either, no option to fetch songs from 0-99, 100-199 and so on.

To Reproduce
Steps to reproduce the behavior:

  1. Make a request to YTMusic.get_playlist(playlist_id, None, True, 0)
  2. Count the number of tracks in data["tracks"]

Additional context
Perhaps YTMusic only loads 99 songs at a time, even on the web client the whole playlist does not load all at once. limit = None is supposed to fetch all, but if that's not possible maybe there should be an option to paginate.

Originally created by @tyagidevansh on GitHub (Feb 4, 2025). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/740 **Describe the bug** get_playlist(playlist_id, None, True, 0) returns 99 songs even though the playlist is over 300 songs. As far as I can tell, there's no pagination either, no option to fetch songs from 0-99, 100-199 and so on. **To Reproduce** Steps to reproduce the behavior: 1. Make a request to YTMusic.get_playlist(playlist_id, None, True, 0) 2. Count the number of tracks in data["tracks"] **Additional context** Perhaps YTMusic only loads 99 songs at a time, even on the web client the whole playlist does not load all at once. limit = None is supposed to fetch all, but if that's not possible maybe there should be an option to paginate.
kerem closed this issue 2026-02-27 23:01:01 +03:00
Author
Owner

@sgvictorino commented on GitHub (Feb 4, 2025):

Can you reproduce this on 1.10.1?

<!-- gh-comment-id:2632921827 --> @sgvictorino commented on GitHub (Feb 4, 2025): Can you reproduce this on [1.10.1](https://github.com/sigma67/ytmusicapi/releases/tag/1.10.1)?
Author
Owner

@tyagidevansh commented on GitHub (Feb 4, 2025):

I'm sorry I thought i was on 1.10.1 when my project was actually on 1.8, it works great on 1.10.1! No issues at all. The API works great!

<!-- gh-comment-id:2632942060 --> @tyagidevansh commented on GitHub (Feb 4, 2025): I'm sorry I thought i was on 1.10.1 when my project was actually on 1.8, it works great on 1.10.1! No issues at all. The API works great!
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#479
No description provided.