[GH-ISSUE #213] How to get the charts data from https://charts.youtube.com/ #167

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

Originally created by @YashMakan on GitHub (Jul 10, 2021).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/213

Originally assigned to: @sigma67 on GitHub.

is it possible to get charts data using this library from https://charts.youtube.com/. I read this answer on StackOverflow which is similar to what I want to achieve but it's not working for me. can anyone help?
Thanks

Originally created by @YashMakan on GitHub (Jul 10, 2021). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/213 Originally assigned to: @sigma67 on GitHub. is it possible to get charts data using this library from https://charts.youtube.com/. I read [this](https://stackoverflow.com/a/44615847/10566556) answer on StackOverflow which is similar to what I want to achieve but it's not working for me. can anyone help? Thanks
kerem 2026-02-27 22:08:24 +03:00
Author
Owner

@sigma67 commented on GitHub (Jul 11, 2021):

In YouTube Music they're here https://music.youtube.com/charts, but you're right, this is not yet implemented

<!-- gh-comment-id:877776072 --> @sigma67 commented on GitHub (Jul 11, 2021): In YouTube Music they're here https://music.youtube.com/charts, but you're right, this is not yet implemented
Author
Owner

@sigma67 commented on GitHub (Jul 11, 2021):

Feel free to test with the new get_charts method

<!-- gh-comment-id:877830962 --> @sigma67 commented on GitHub (Jul 11, 2021): Feel free to test with the new `get_charts` method
Author
Owner

@YashMakan commented on GitHub (Jul 11, 2021):

Thank you so much... Now I can successfully get charts by country. You are amazing... can you also tell me how can I get the specific data from the artist profile like in here we can get where people are listening and total play graph? Thanks...

<!-- gh-comment-id:877843345 --> @YashMakan commented on GitHub (Jul 11, 2021): Thank you so much... Now I can successfully get charts by country. You are amazing... can you also tell me how can I get the specific data from the artist profile like in [here](https://charts.youtube.com/artist/%2Fm%2F06w2sn5) we can get where people are listening and total play graph? Thanks...
Author
Owner

@sigma67 commented on GitHub (Jul 11, 2021):

That is a cool page but unfortunately it uses a different API endpoint (charts.youtube.com, not music.youtube.com). Therefore I would consider it out of scope for this project.

Feel free to experiment on your own though, perhaps it can work by modifying the headers a bit. Overall request structure looks fairly similar

<!-- gh-comment-id:877851058 --> @sigma67 commented on GitHub (Jul 11, 2021): That is a cool page but unfortunately it uses a different API endpoint (charts.youtube.com, not music.youtube.com). Therefore I would consider it out of scope for this project. Feel free to experiment on your own though, perhaps it can work by modifying the headers a bit. Overall request structure looks fairly similar
Author
Owner

@YashMakan commented on GitHub (Jul 11, 2021):

alright, thanks for your time & help. 👍

<!-- gh-comment-id:877855121 --> @YashMakan commented on GitHub (Jul 11, 2021): alright, thanks for your time & help. 👍
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#167
No description provided.