Youtube V3 API allows you to download activity feed only with download

By default, all types are used to call an activity feed. It would be great if there was a way to filter by type so that I could get a feed of just downloads. Is it possible?

https://www.googleapis.com/youtube/v3/activities?access_token=####&part=id,snippet,contentDetails&home=true&maxResults=50

+4
source share
1 answer

If you are looking for downloads, you must call the Channels resource to get the Uploads playlist, and then use the PlaylistItems for your activity feed.

So, to download the Google channel, make a call here:

https://www.googleapis.com/youtube/v3/channels?part=contentDetails&id=UCK8sQmJBp8GCxrOtXWBpyEA&key= {YOUR_API_KEY}

Here you will find the playlist identifier (UUK8sQmJBp8GCxrOtXWBpyEA) in response to json:

items โ†’ contentDetails โ†’ relatedPlaylists โ†’ uploads

Then call the PlaylistItems resource using "UUK8sQmJBp8GCxrOtXWBpyEA" set to playlistId

https://www.googleapis.com/youtube/v3/playlistItems?part=id%2Csnippet%2CcontentDetails&maxResults=50&playlistId=UUK8sQmJBp8GCxrOtXWBpyEA& key = {YOUR_API_KEY}

+1
source

All Articles