With Youtube api v2, there's easy way to get videos. Just send a query like this:
The Youtube api v2 also has an interactive demo page for building query: http://gdata.youtube.com/demo/index.html
With Youtube api v3, I don't know the corresponding way. Please point me the way with api v3.
Thank you!
Uploads Function can be
In node.js, it can be achieved with following code.
Requires
authKey
andchannelId
asoptions
object parameter.cb
callback is called after data is fetched.Note: axios is used for RESTful requests. To install
Check the Complete code here https://thecodingshow.blogspot.com/2018/12/youtube-search-api-website.html
An alternative method may be to get the playlists for the currently oauth authenticated user via: property mine=true
where the oauth access_token is retrieved following authentification: https://developers.google.com/youtube/v3/guides/authentication
In case it helps anyone here this is what I discovered and so far seems to be working well for me. I am authenticating the member via OAuth 2.0 prior to making this request, which will give me the authenticated members videos. As always, your personal mileage may vary :D
Things have changed alot in V3 of the API. Here is a video that walks you through the v3 API calls needed to get a list of the videos uploaded in a given channel, with live demos using the API Explorer.
YouTube Developers Live: Getting a Channel's Uploads in v3 - https://www.youtube.com/watch?v=RjUlmco7v2M