[GH-ISSUE #288] Ability to request a range of songs in a playlist #225

Closed
opened 2026-02-27 22:08:41 +03:00 by kerem · 1 comment
Owner

Originally created by @AntonBogun on GitHub (Aug 9, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/288

I have just started using this API and it looks like there is no way to only request a specific range of songs in a playlist rather than all the songs from 0 to n*100 (rounded up limit/100 in get_playlist from my initial testing).
From what I understand the functionality in youtube's actual API should be there as the songs load in batches of 100s in large playlists, and I am assuming the previously loaded songs are not discarded in the process.

Originally created by @AntonBogun on GitHub (Aug 9, 2022). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/288 I have just started using this API and it looks like there is no way to only request a specific range of songs in a playlist rather than all the songs from `0` to `n*100` (rounded up `limit/100` in `get_playlist` from my initial testing). From what I understand the functionality in youtube's actual API should be there as the songs load in batches of 100s in large playlists, and I am assuming the previously loaded songs are not discarded in the process.
kerem closed this issue 2026-02-27 22:08:41 +03:00
Author
Owner

@sigma67 commented on GitHub (Aug 15, 2022):

You can only load the playlist incrementally starting from the first entry, as in the web interface. Getting a subset of the loaded items is as simple as using Python array slicing syntax [:]

<!-- gh-comment-id:1215581550 --> @sigma67 commented on GitHub (Aug 15, 2022): You can only load the playlist incrementally starting from the first entry, as in the web interface. Getting a subset of the loaded items is as simple as using Python array slicing syntax `[:]`
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#225
No description provided.