title: Get a YouTube channel uploaded video list by publish date
body: <p><strong>I am aware of similar questions being asked before, but not this exact one, so please bear with me...</strong></p>
  
  <p>I want to reproduce a channel's uploaded videos list as they appear on YouTube's web page (broken into pages and sorted by publish date).</p>
  
  <p>To do this, I am trying to get a list of VideoIDs from a YouTube channel that's sorted by publish date (by YouTube, not my code since there could be 1000's of videos in a playlist and YouTube limits to 50 results per query which can add up when I only want to show the user the first 25 entries).</p>
  
  <p>Initially, I was using this YouTube Data API v3 Search query:</p>
  
  <pre><code>https://www.googleapis.com/youtube/v3/search?key=[APIKey]&amp;channelId=[ChannelID]&amp;part=snippet,id&amp;order=date&amp;type=video&amp;maxResults=25
  </code></pre>
  
  <p>However, as some of the previous posts on stackoverflow mentioned (<a href="https://stackoverflow.com/questions/52808721/youtube-api-v3-search-not-returning-all-videos">YouTube API v3 Search not returning all videos</a>), this method does not guarantee to return all videos and indeed, some videos are missing from the result, making use of this query problematic.</p>
  
  <p>I then saw this google video in some of the posts:<br>
  <a href="https://www.youtube.com/watch?v=RjUlmco7v2M" rel="nofollow noreferrer">https://www.youtube.com/watch?v=RjUlmco7v2M</a></p>
  
  <p>In the video, it is explained that you must first get the 'uploads' playlist for a channel (I'm also grabbing the channel's title and thumbnail in this query), which I do using:</p>
  
  <pre><code>https://www.googleapis.com/youtube/v3/channels?key=[APIKEY]&amp;part=snippet,contentDetails&amp;id=[ChannelID]
  </code></pre>
  
  <p>And once I have the 'uploads' playlist ID, I query:</p>
  
  <pre><code>https://www.googleapis.com/youtube/v3/playlistItems?key=[APIKey]&amp;playlistId=[PlaylistID]&amp;part=snippet,id&amp;order=date&amp;type=video&amp;maxResults=25
  </code></pre>
  
  <p>However, the returned entries are <strong>not sorted by the publish date</strong> and according to the documentation (<a href="https://developers.google.com/youtube/v3/docs/playlistItems/list" rel="nofollow noreferrer">https://developers.google.com/youtube/v3/docs/playlistItems/list</a>), there is no optional "order" parameter associated with this query.</p>
  
  <p>With all these issues in mind, how do I get the first 25 entries of the 'uploads' playlist sorted by publish date without downloading the entire playlist so I can faithfully recreate how the YouTube website is listing videos.</p>