[Solved] latest video by youtube api

This is a common pitfall of the API. Please consider carefully the following: The PlaylistItems endpoint queried for the uploads list of a channel produces an items list which is ordered by videoPublishedAt. But the items themselves contains publishedAt datetime properties attached. (The emphasis below is mine.) videos#snippet.publishedAt (datetime) The date and time that the … Read more