I want to get the tags of a video from Youtube using the video's URL. I have searched in Google, but mostly I get the answer that "YouTube's API can no longer be used to retrieve tags".
Is there still a way that I can get video tags from a YouTube video using PHP?
For example for URL : http://www.youtube.com/watch?v=LIjs3-8cZVA
$connect = file_get_contents("http://www.youtube.com/watch?v=LIjs3-8cZVA");
preg_match_all('|<meta property="og\:video\:tag" content="(.+?)">|si', $connect, $tags, PREG_SET_ORDER);
foreach ($tags as $tag) {
echo $tag[1] . "<br>";
}