I am trying to get a list of video ids for all uploaded videos to a channel. I would also like to use the new version of the YouTube Data API (V3). How do I do this?
标签:
youtube-api
相关问题
- YouTube API refresh token revoked with 400 code “i
- YouTube Data API v3 allowed referers for browser a
- Auto Upload of Videos to my account, using youtube
- handling errors in youtube data api in javascript
- YouTube API v3.0: How do you determine if a video
相关文章
- How to get the last 24 hours worth of videos from
- How can I get a list of the most viewed Youtube vi
- YouTube API 3 GET last videos from specific User
- youtube-upload runs from terminal but not cron cal
- Our application uploads hundreds of videos per day
- Youtube iframe api check if video exists
- Play YouTube playlist automatically
- Can I schedule YouTube videos for release via the
You have to get the upload playlist id to get each videos uploaded. To get that, you need to get the channel id. After you have the playlist id from the channel id, it is pretty simple. I have written out the steps for all three below.
Also, we offer PubSubHubBub which allows you to be alerted every time a new video is added to a channel, or you could use SUP (V2) to see which resources have changed before making the calls.
Instructions to get video ids for all uploaded videos for a channel in V3
Get the channel id for the channel you want (you probably only need to do this once, then you can save it)
Get the playlist id for the channel uploads using the channel id from step 1 (you probably only need to do this once, then you can save it)
Get the videos via the playlistitems in the playlist using the playlist id from step 2
In the meantime, there is a much easier way:
grab $data->items[0]->contentDetails->relatedPlaylists->uploads --> [PLAYLISTID]