On a website, i use API Youtube with ZendGdata for retrieve all video of a user and create webpage with the video and his informations.
Now i need to add a system for like or dislikes video on my website, and i need to retrieve the number of likes and dislikes.
(Yes, there are 2 questions here^^)
So, i retrieve for example title with $videoEntry->getVideoTitle();
, number of views with $videoEntry->getVideoViewCount();
but how i can retrieve number of likes/dislikes ?
And how i can vote for a video on my website ?
This affects the user's viewing and objective evaluation of the video. Therefore bringing dislike is necessary Starting December 13th 2021, YouTube removed the ability to see dislikes from their API.
Go to your channel. Under your channel art, click Settings or. . Under "Privacy," turn on or off the individual activities.
To see dislikes from your phone, simply go to your videos in the YouTube app and click on the video you want to see metrics for. Click on the video to get to the screen where you can the number of likes and dislikes.
An update to Cormac answer is that youtube will remove this and you can use it for yourself only.
Note: The statistics.dislikeCount property will be made private as of December 13, 2021. This means that the property will only be included in an API response if the API request was authenticated by the video owner. See the revision history for more information.
If you take a look at the videos
resource in YouTube 3.0 API, among the values included are:
likeCount
dislikeCount
Full details here: https://developers.google.com/youtube/v3/docs/videos
If you're using the YouTube 2.0 API, then check out the <yt:rating>
tag, which contains the following fields:
numLikes
numDislikes
More info here: https://developers.google.com/youtube/2.0/reference#youtube_data_api_tag_yt:rating
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With