Youtube API: there is no way to get your favorite videos from a userโ€™s activity feed

It is known that the Youtube API (v2) does not support favorite videos - http://www.youtube.com/my_liked_videos (and not http://www.youtube.com/my_favorites ). The trick was to use the event API for recent user activity and filter out those that have yt: rating.value = like. However, when I got to this endpoint https://gdata.youtube.com/feeds/api/users/default/events?inline=true (with the corresponding authorization headers), I get only the last 24 events, and they all have "X" type. Has anyone experienced this and realized what is wrong?

+7
source share
1 answer

You can get your favorite videos effortlessly in the v3 API. I don't think the workaround for this is in v2.

In v3, make a call to channels.list(part=contentDetails) to get the identifier of the โ€œlikesโ€ list, and then call playlistItems.list() to get the contents of this playlist, that is, the videos you like.

+4
source

All Articles