I need to get daily uploaded videos in a playlist so thought to get videos for a playlist sorted by published date. So is there any option to pass published date while fetching data for playlist?
I tried 2 options
option 1 ) https://www.googleapis.com/youtube/v3/playlistItems?part=snippet%2CcontentDetails&maxResults=15&playlistId=PLP-nGFpz3fa_boeLhG4m0Ie_8vmCvp5oH&key={YOUTUBE_API_KEY}
does result return from this URL is in sorted order? I found its not in sorted order. Can I pass some date parameters related to date in this or some sort related parameters?
option2 ) I tried using "Youtube Search API" https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.search.list
here we have date option but only can pass channelId not playlistId. So can we pass playlistId in search API to get all videos for playlist?
Is there any other way which I can use?
Thanks