Retrieve youtube views


hello is there a javascript script to retrieve only views of a youtube video the embed iframe for youtube video doesn’t display number of views it.



Look into YouTube’s API.

Retrieving a video provides pretty much all the info you could need, including view count:

Also, they have some javascript examples on using the API: