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

2019-05-02 21:59发布

问题:

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?

回答1:

It can be done using YouTube Data API v3.

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



回答2:

This is API v3, checkout this page :

https://developers.google.com/youtube/v3/docs/playlists



回答3:

Currently, The official client youtube on android and iOS devices does not support this. User can't see that he/she liked or disliked a video. And, when I press "like" or "dislike" on iPad youtube app, the number of like on the youtube web does not change.

Unbelievable!



标签: youtube-api