YouTube's API is busted if you're trying to fetch latest videos

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

Fancy an email update instead of having to pop back here every time?

Heya! I’m Cohan and I make websites. I also administer Linux servers and do other nerdy good stuff like that.
My real love is writing though, this here’s my outlet for that.
A picture of me.