[GH-ISSUE #322] get_charts returns incomplete list of tracks #250

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

Originally created by @shoegazerstella on GitHub (Dec 5, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/322

Hi all,

the get_charts() method only returns the first 40 items instead of the complite list.
Is there a way to add the missing ones?

thank you

Originally created by @shoegazerstella on GitHub (Dec 5, 2022). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/322 Hi all, the `get_charts()` method only returns the first 40 items instead of the complite list. Is there a way to add the missing ones? thank you
kerem 2026-02-27 22:08:49 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@sigma67 commented on GitHub (Dec 7, 2022):

You can use the following code (assuming your instance is called yt_auth)

charts = yt_auth.get_charts()
charts_100_songs = yt_auth.get_playlist(charts['songs']['playlist'])
charts_100_videos = yt_auth.get_playlist(charts['videos']['playlist'])
<!-- gh-comment-id:1341257608 --> @sigma67 commented on GitHub (Dec 7, 2022): You can use the following code (assuming your instance is called yt_auth) ```python charts = yt_auth.get_charts() charts_100_songs = yt_auth.get_playlist(charts['songs']['playlist']) charts_100_videos = yt_auth.get_playlist(charts['videos']['playlist']) ```
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#250
No description provided.