Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to programmatically find out what channels are part of a given YouTube network?

Looks like there is no official YouTube API to find list of YouTube networks or what channels are part of a given network. Any ideas how to find that information?

If there is no direct method, what algorithm does socialblade.com use get approximate listings?

like image 827
amolk Avatar asked Sep 24 '12 17:09

amolk


1 Answers

I don't know if this is the way sites such as socialblade or channelmeter get the networked channels. But this is the way i did it.

Say i visit this video link: http://www.youtube.com/watch?v=_8AZT40gH5E

In the meta tags information of a networked channel, there is an attribute <meta name=attribution content=JamieOliver/> (As example) which actually specifies the network that channel belongs to. So what i did was one video from the channel i'm working with, and use a small function like this:

$tags = get_meta_tags("http://www.youtube.com/watch?v=_8AZT40gH5E");
echo $network = $tags['attribution'];

And you have the Network the channel is associated with.

like image 168
Zy0n Avatar answered Oct 07 '22 13:10

Zy0n