Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

API Youtube, how to get like and dislikes

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 ?

like image 487
Clément Andraud Avatar asked Apr 11 '13 14:04

Clément Andraud


People also ask

Is YouTube removing the dislike API?

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.

How do I enable likes and dislikes on YouTube?

Go to your channel. Under your channel art, click Settings or. . Under "Privacy," turn on or off the individual activities.

Is there a way to see YouTube dislikes?

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.


2 Answers

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.
like image 23
nima moradi Avatar answered Sep 25 '22 08:09

nima moradi


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

like image 97
Cormac Driver Avatar answered Sep 21 '22 08:09

Cormac Driver