Youtube channel RSS url

May 11, 2020

Since i dont have a Youtube account, but i still want to be subscribed to some great channels, i use their RSS url. The problem with this is that although they are available, Youtube doesnt make them public in their website. So i always return to this excellent answer. As i dont want to lose it, im going to copy it here.

If you have the ChannelID, you can make it with the following way https://www.youtube.com/feeds/videos.xml?channel_id=ChannelID.

Or you can always execute this snippet in the console devtools to get the url.

for (var arrScripts = document.getElementsByTagName('script'), i = 0; i < arrScripts.length; i++) {
    if (arrScripts[i].textContent.indexOf('externalId') != -1) {
        var channelId = arrScripts[i].textContent.match(/\"externalId\"\s*\:\s*\"(.*?)\"/)[1];
        var channelRss = 'https://www.youtube.com/feeds/videos.xml?channel_id=' + channelId;
        var channelTitle = document.title.match(/\(?\d*\)?\s?(.*?)\s\-\sYouTube/)[1];
        console.log('The rss feed of the channel \'' + channelTitle + '\' is:\n' + channelRss);
        break;
    }
}

Another option is to add this Subscribe bookmarklet to your bookmarks and just click it.

Leave your comment on the github issue, sending me an email or DMing me on twitter