On YouTube every video is uploaded by a user. Every user may have one or more than one channel. The name of the user is unique and human usage friendly. There are one or more channels associated with every user which may or may not be unique in nature. These channels have a unique ID which is important in this context because it is required for data extraction from a user or any particular channel from a user.For example Indian new channel NDTV has a user name in YouTube called ‘ndtv’ but there are multiple channels associated with this user name such as “NDTV”, “NDTV India”, “NDTV Prime”, “NDTV Good Times” and “NDTV Profit”. These channels also have a unique id associated with them, which is going to be used to extract data from them. Here we are going to use the function get_channelids to extract channels related information from the YouTube data API. Here are some other important feature which this function is going to return and those are:

regionCode: This shows the region of operation the particular channel.

pageInfo.totalResults: This column holds the total number of videos uploaded by the user.

items.id.channelId: This is the unique channel id associated with every channel.

items.snippet.title: This is the title of every channel.

items.snippet.description: This column holds description related to a channel which is basically a small description about the channel.

items.snippet.thumbnails: At present three columns present which has URL of defaulted, medium and high resolution images of the channel logo or display picture. Here we are going to demonstrate get_channelids with channel name `ndtv’

channelname<-"ndtv"                          
key<-"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
library(YouTubeR)
NDTV_channelid<-get_channelids(channelname,key)
head(NDTV_channelid)
kind etag nextPageToken regionCode pageInfo.totalResults pageInfo.resultsPerPage items.kind items.etag items.id.kind items.id.channelId items.snippet.publishedAt items.snippet.channelId items.snippet.title items.snippet.description items.snippet.channelTitle items.snippet.liveBroadcastContent items.snippet.thumbnails.default.url items.snippet.thumbnails.medium.url items.snippet.thumbnails.high.url
youtube#searchListResponse “5g01s4-wS2b4VpScndqCYc5Y-8k/0uIInPRy-NTEv_0uvpjDaVjVZfE” CAUQAA IN 35691 5 youtube#searchResult “5g01s4-wS2b4VpScndqCYc5Y-8k/en4w4geo3j_SiIg9tgFhqHQIMec” youtube#channel UCZFMm1mMw0F81Z37aaEzTUA 2006-05-08T04:31:19.000Z UCZFMm1mMw0F81Z37aaEzTUA NDTV NDTV is one of the leaders in the production and broadcasting of un-biased and comprehensive news and entertainment programs in India and abroad. It offers … NDTV upcoming https://yt3.ggpht.com/-L8AxmJwZuy8/AAAAAAAAAAI/AAAAAAAAAAA/eZRzS7tRVX0/s88-c-k-no-rj-c0xffffff/photo.jpg https://yt3.ggpht.com/-L8AxmJwZuy8/AAAAAAAAAAI/AAAAAAAAAAA/eZRzS7tRVX0/s240-c-k-no-rj-c0xffffff/photo.jpg https://yt3.ggpht.com/-L8AxmJwZuy8/AAAAAAAAAAI/AAAAAAAAAAA/eZRzS7tRVX0/s240-c-k-no-rj-c0xffffff/photo.jpg
youtube#searchListResponse “5g01s4-wS2b4VpScndqCYc5Y-8k/0uIInPRy-NTEv_0uvpjDaVjVZfE” CAUQAA IN 35691 5 youtube#searchResult “5g01s4-wS2b4VpScndqCYc5Y-8k/DHii8C8OSAUMCd1yne4fNl2Xmk4” youtube#channel UC9CYT9gSNLevX5ey2_6CK0Q 2008-01-19T14:47:27.000Z UC9CYT9gSNLevX5ey2_6CK0Q NDTV India NDTV India is a 24-hour Hindi news channel. NDTV India established its image as one of India’s leading credible news channels, and is a preferred channel by … NDTV India upcoming https://yt3.ggpht.com/-H95jY2ux2YQ/AAAAAAAAAAI/AAAAAAAAAAA/ZWe_3_BJ5sY/s88-c-k-no-rj-c0xffffff/photo.jpg https://yt3.ggpht.com/-H95jY2ux2YQ/AAAAAAAAAAI/AAAAAAAAAAA/ZWe_3_BJ5sY/s240-c-k-no-rj-c0xffffff/photo.jpg https://yt3.ggpht.com/-H95jY2ux2YQ/AAAAAAAAAAI/AAAAAAAAAAA/ZWe_3_BJ5sY/s240-c-k-no-rj-c0xffffff/photo.jpg
youtube#searchListResponse “5g01s4-wS2b4VpScndqCYc5Y-8k/0uIInPRy-NTEv_0uvpjDaVjVZfE” CAUQAA IN 35691 5 youtube#searchResult “5g01s4-wS2b4VpScndqCYc5Y-8k/XC_66xTl0TFrdH1F4K4YuCDCk24” youtube#channel UCf9StUUEcbRpbvpdKx5eS_g 2014-02-27T09:32:46.000Z UCf9StUUEcbRpbvpdKx5eS_g NDTV Prime India’s first 2-in-1 channel for the 20+ Urban Male So, it’s 9am-5pm (IST) of Live Market Hours on NDTV Profit, followed by Infotainment & Entertainment after 5 … NDTV Prime none https://yt3.ggpht.com/-z-DeHLjzo4M/AAAAAAAAAAI/AAAAAAAAAAA/xz8h1oFDw7k/s88-c-k-no-rj-c0xffffff/photo.jpg https://yt3.ggpht.com/-z-DeHLjzo4M/AAAAAAAAAAI/AAAAAAAAAAA/xz8h1oFDw7k/s240-c-k-no-rj-c0xffffff/photo.jpg https://yt3.ggpht.com/-z-DeHLjzo4M/AAAAAAAAAAI/AAAAAAAAAAA/xz8h1oFDw7k/s240-c-k-no-rj-c0xffffff/photo.jpg
youtube#searchListResponse “5g01s4-wS2b4VpScndqCYc5Y-8k/0uIInPRy-NTEv_0uvpjDaVjVZfE” CAUQAA IN 35691 5 youtube#searchResult “5g01s4-wS2b4VpScndqCYc5Y-8k/ldQDUPU-rAYecs52tDZoEetDqy4” youtube#channel UCRqWqb-iDlueYhUT98Ouj2A 2008-01-19T21:56:44.000Z UCRqWqb-iDlueYhUT98Ouj2A NDTV Good Times Celebrations, consumerism and catharsis have created an Indian transformation that is the perfect potboiler for television programming. This is the India that is … NDTV Good Times none https://yt3.ggpht.com/-2QN5Gv3wwQU/AAAAAAAAAAI/AAAAAAAAAAA/OLqZeg-YiTY/s88-c-k-no-rj-c0xffffff/photo.jpg https://yt3.ggpht.com/-2QN5Gv3wwQU/AAAAAAAAAAI/AAAAAAAAAAA/OLqZeg-YiTY/s240-c-k-no-rj-c0xffffff/photo.jpg https://yt3.ggpht.com/-2QN5Gv3wwQU/AAAAAAAAAAI/AAAAAAAAAAA/OLqZeg-YiTY/s240-c-k-no-rj-c0xffffff/photo.jpg
youtube#searchListResponse “5g01s4-wS2b4VpScndqCYc5Y-8k/0uIInPRy-NTEv_0uvpjDaVjVZfE” CAUQAA IN 35691 5 youtube#searchResult “5g01s4-wS2b4VpScndqCYc5Y-8k/4oBVAyI56qw0rF4teZ50hE2DoAs” youtube#channel UCJEtD6JDgNKxcPJPBOAf-Tg 2007-02-28T07:54:42.000Z UCJEtD6JDgNKxcPJPBOAf-Tg NDTV Profit NDTV Profit, a 24-hour business channel, has established new standards for simple, clear and transparent reporting on the world of business. New Delhi … NDTV Profit none https://yt3.ggpht.com/-JMCAdkyhurQ/AAAAAAAAAAI/AAAAAAAAAAA/G0Twqgf_d1U/s88-c-k-no-rj-c0xffffff/photo.jpg https://yt3.ggpht.com/-JMCAdkyhurQ/AAAAAAAAAAI/AAAAAAAAAAA/G0Twqgf_d1U/s240-c-k-no-rj-c0xffffff/photo.jpg https://yt3.ggpht.com/-JMCAdkyhurQ/AAAAAAAAAAI/AAAAAAAAAAA/G0Twqgf_d1U/s240-c-k-no-rj-c0xffffff/photo.jpg