Get Channel Subscriptions and Playlists
See original GitHub issueFrom channel id get it’s subscriptions and playlists if publicly available.
GetChannelSubscribtionsAsync(string channelId)
returns IEnumerable<string>
ChannelIds //at minimum maybe there would be more info available
GetChannelPlaylistsAsync(string channelId)
returns IEnumerable<string>
PlaylistIds //at minimum maybe there would be more info available
Or maybe it is possible to get everything through GetChannelInfoAsync(string channelId)
?
I haven’t looked on how to do this. Worst case scenario would be to parse/scrape channel page.
https://www.youtube.com/channel/{channelId}/channels https://www.youtube.com/channel/{channelId}/playlists
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (9 by maintainers)
Top Results From Across the Web
Change your subscription privacy settings - YouTube Help
Make your channel subscriptions public or private · Sign in to YouTube on a computer. · In the top right, click your profile...
Read more >Implementation: Subscriptions | YouTube Data API
Call the subscriptions.list method to retrieve subscriptions for a particular channel. There are two ways to identify the channel:.
Read more >How to Move YouTube Content to a New Google Account
If the goal is to move or recreate your YouTube subscriptions, playlists, channels, and videos from your old account to the new one,...
Read more >How to Transfer Youtube Data to Another Account ...
Do you want to transfer YouTube data to another account? Follow the different steps to share YouTube content to another channel, playlist, and...
Read more >17 Ways to Get More YouTube Subscribers (2023)
1. Use “Power Playlists” · 2. Publish Long Videos · 3. Promote Videos In Your End Screen · 4. Use a Brand Watermark...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was wondering if this could be done without the API and it does appear to be possible and even relatively simple as well.
Youtube embeds a JSON object into the source of the playlist page which is then processed by polymer (the JS frontend) in order to show content.
Here is a gist from the information from the following page: https://www.youtube.com/user/LinusTechTips/playlists https://gist.github.com/Zyano/857e5a4ad8df73e41b63aad6a71277b5
The section in the gist is layered in the HTML like this.
<script > window["ytInitialData"] = JSON SNIPPET/GIST GOES HERE window["ytInitialPlayerResponse"] = (null); if (window.ytcsi) {window.ytcsi.tick("pdr", null, '');} </script>
It should be possible to parse this information to get the desired result.
I will go ahead and clean it up and submit a PR then we can have an easier discussion about the changes to see if it’s the right fit.