Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Youtube-API: How to determine if I liked a video before?

Tags:

youtube-api

I am developing a client of Youtube for iOS devices. I want to check if logged user did Like or dislike a specified video or not. But I can't find any support API (here)

When I load the feed of videos, I just found rating information below , No thing shows that logged user liked or disliked this video.

{
   "gd$rating":{
      "average":4.8963733,
      "max":5,
      "min":1,
      "numRaters":193,
      "rel":"http://schemas.google.com/g/2005#overall"
   },
   "yt$statistics":{
      "favoriteCount":"0",
      "viewCount":"111626"
   },
   "yt$rating":{
      "numDislikes":"5",
      "numLikes":"188"
   }
}

Did I make any mistake?

like image 526
Nguyen Minh Binh Avatar asked Jan 18 '13 04:01

Nguyen Minh Binh


People also ask

What is snippet in YouTube API?

The snippet object contains basic details about the video, such as its title, description, and category. The date and time that the video was published. Note that this time might be different than the time that the video was uploaded.


1 Answers

It can be done using YouTube Data API v3.

https://developers.google.com/youtube/v3/docs/videos/getRating

like image 115
Gapipro Avatar answered Sep 28 '22 11:09

Gapipro