David (dblume) wrote,

YouTube favorites feeds: v=2 is sorted=favorited

I haven't really seen this spelled out in a really clear manner on the web, so let me help out. YouTube's got useful programmatic feeds. You can specify a feed for a user's videos like:


You can also specify the order in which you want the videos.  Note the "orderedby" parameter in the urls that follow:


So far, so great. Now, suppose you want to make a lifestream, and you want to include the videos that you've favorited. They've got a feed for that, too:


But it's not right.  If you look at the data you get back, you see that it's not what you wanted. Those videos are going to be associated with the timestamp with which they were updated or published, not the time that you favorited them. And that's the time that matters to your lifestream! Given the way the programmatic feeds are organized, you'd think that there's a way to specify that, and that feed would be as follows, right? --


Nope. After living with a workaround in my lifestream for months, only today do I learn that YouTube did create the feed I needed, but calls it this: v=2. Yeah, like that jibes with their feed explanation.

Lifestream writers, the favorites feed (ordered by time favorited) that you want is constructed like this:


(Replace "username" with your username, of course.)  Now I can go delete my workaround.

Tags: code, geek, programming, solved, web

  • California's Education Funding Over Time

    California is expecting to fund over 50% more students than in 1980 while diverting funds from universities to prisons. That can't possibly work. A…

  • Totally Unnecessary

    Rabbit, rabbit. Yeah, I have this month covered already elsewhere. But why not give LJ a little Leporidae leporidae love too?

  • Our Three Greatest Fears

    I've heard it said that a study was done to catalogue our greatest fears, and that the second greatest fear we have is death, while the greatest fear…

  • Error

    Comments allowed for friends only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded