YouTube API v3 Order parameters Possible error

Looking at the YouTube API v3 for search , it indicates that the order parameter is used to control the ordering of the API response resource results. However, when trying to order by date, I am not getting the results in reverse chronological order as stated. In fact, they are not in any order.

API request with order date

using the API API:

enter image description here

Is there any other way I should be requesting results to be ordered by the time they are posted on YouTube? Is there an error while processing the order API parameter?

+3


source to share


1 answer


No mistakes; the "order" option will sort the results based on when the resources were created. This value may differ slightly from when the video is published, as the resource is created on upload, but the video is published when the upload is finished and processed.



In this case, it looks like the 10 or so most recent videos were uploaded at the same time (YouTube.com has a batch downloader), so you get the order in which they were created, although the dates posted reflect minor differences ( maybe a couple took a little longer to load or something). If you scan the full list of results, you'll see that they just look great in reverse chronological order. And generally, you probably won't have that many videos that have been uploaded to the pack like this.

0


source







All Articles