Click here to Skip to main content
15,848,264 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to play a youtube video in my html page along with video's likes,comments and subscription. i used the embed code of youtube video and played using iframe in my html page. but i cannot find is it possible to display videos likes and comments. can anyone help me to solve this issue????

What I have tried:

i used embed code

and i run the video
Updated 16-Jul-19 7:57am
Dominic Burford 16-Jul-19 3:22am    
Embedded videos are generally just iframes that will only play the video. If you want to display the video as well as the comments and likes then consider navigating the user to the youtube page instead.

1 solution

There is no way to embed a YouTube video with its likes and comments; you can only embed the video itself.

However, there is an API you can use to access the likes and comments:
API Reference  |  YouTube Data API  |  Google Developers[^]

You will need an API key, and there may be limits on the number of calls you can make.
Share this answer
parkavikkk 15-Oct-19 3:37am    
thank you sir.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900