/ Published in: PHP
Get number of Youtube vidfeo views.
youtube api
youtube api
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function get_youtube_views($video_ID) { $views = $JSON_Data->{'feed'}->{'entry'}[0]->{'yt$statistics'}->{'viewCount'}; echo $views; } get_youtube_views('5WEK6HgXBsQ'); ?>
URL: http://stackoverflow.com/questions/3331176/how-to-get-number-of-video-views-with-youtube-api