question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get Channel Subscriptions and Playlists

See original GitHub issue

From 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:closed
  • Created 6 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
Zyanocommented, Sep 7, 2017

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.

1reaction
Zyanocommented, Jan 5, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found