So I\'m trying to get the channel profile picture for a YouTube channel by using the channelId.
I would like to do it simply by adding the channelId to a URL and get the
In PHP, I got it with:
$url = "https://www.googleapis.com/youtube/v3/channels?part=snippet&fields=items%2Fsnippet%2Fthumbnails%2Fdefault&id={$channelId}&key={$API}";
$ch = curl_init();
curl_setopt( $ch, CURLOPT_URL, $url );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
$channelOBJ = json_decode( curl_exec( $ch ) );
$thumbnail_url = $channelOBJ->items[0]->snippet->thumbnails->default->url;