Quantcast
Viewing all articles
Browse latest Browse all 3

Answer by user1190992 for YouTube Api (V2.0 or 3.0) get channel info given channel url

One way to get all the things you have requested is to search for channel

For instance

$channel_query = "channel_name";$yt_url = "https://gdata.youtube.com/feeds/api/channels?q=".$channel_query."&alt=json&v=2";$data = file_get_contents($yt_url);echo "<pre>"; print_r(json_decode($data)); echo "</pre>";

After you get the feed, you would need to loop through the channel entries and match your channel. Best way of doing that is using your channel ID.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>