Get the amount of likes/dislikes for a YouTube video via API?

Up vote 3 down vote favorite 1 share g+ share fb share tw.

Youtube youtube-api link|improve this question asked Sep 1 '10 at 14:48Nick Brooks2,6141035 97% accept rate.

You can query the YouTube API like this: data->items as $result) { echo 'player->default. '" target="_blank">'; echo 'thumbnail->hqDefault. '">'; echo ' '.

$result->title. ''. $result->likeCount.

''; //print_r($result); }?

The key part here is adding v=2 to the query parameters. Likes and dislikes don't show up in the first version of the API. – johnf Dec 20 '11 at 22:02.

If you are using Java API, then you could get the likes dislikes as follows: YtRaing ytRating = videoEntry.getYtRating(); int likes = ytRating.getNumLikes(); int dislikes = ytRating.getNumDislikes(); videoEntry, is the VideoEntry variable from (com.google.gdata.data.youtube. VideoEntry).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions