YouTube’s gone and broke their API. The order function for latest videos is being ignored.

This is now fixed.

You’re trying to grab the latest videos for a YouTube channel but it’s just returning what looks like a random sorting of videos right? It’s actually doing the sort by relevance as if you’d not provided an order parameter.

publishedAfter is also affected by this and being ignored.

YouTube have said this is temporary and in relation to their efforts to remove graphic or violative content from YouTube. Feck knows how it does that, but there ya go..

Lots more folk annoyed on Google’s issue tracker - looks like it’s also affecting their frontend filters too. Nice one YouTube..


The workaround for now is to either grab the channel’s “Play All” playlist or grab videos via the channel’s RSS feed, which only show a handful of videos.$CHANNEL_ID