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?
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.
It can be done using YouTube Data API v3.
https://developers.google.com/youtube/v3/docs/videos/getRating
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