Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3642

YouTube Data API not returning all Videos in Channel

$
0
0

I'm trying to get the list of all videos in a channel, using the playlistItems list to get all the videos by passing the playlistId. Example -

Get the ID of your channel's uploads playlist using the channels.list API call: GET https://www.googleapis.com/youtube/v3/channels?part=contentDetails&id={YOUR_CHANNEL_ID}&key={YOUR_API_KEY}

Get the videos from the uploads playlist using the playlistItems.list call: GET https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId={YOUR_PLAYLIST_ID}&key={YOUR_API_KEY}

And I'm using the next page token to get to the pages and loop through till I keep getting the next page token.

But I noticed that, this is very inconsistent. The above doesn't return all the videos of the channel. All the missing videos are available on YouTube and also return valid data when using the VideosList end point passing in their videoIds.

Till now I have noticed the same videos are missing every time and they were available in the past. Is this a known issue with the YouTube APIs?

And is there any other way to get all the videos of channels of all statuses (public, private, unlisted). Even large channels which can have 50k+ videos.


Viewing all articles
Browse latest Browse all 3642

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>