Undocumented YouTube API Method

I’m starting a project to remodel the video section on my blog to be more like the photos section. I’d like to have albums of videos just as I have albums of photos. The logical way to group videos with YouTube is by using playlists. There is a function in the YouTube API which allows you to list the videos in a given playlist (youtube.videos.list_by_playlist). However, there is no documented method which allows you to list the playlists for a given user. This seems like an obvious disconnect in the api.

I did a little digging and just found the undocumented api function for getting a list of playlists by user:

Parameters

method: youtube.videos.list_by_playlist (only needed as an explicit parameter for REST calls)
dev_id: Your developer ID. Please request one if you don’t already have one.
id: The ID of the playlist

Example Call

http://www.youtube.com/api2_rest?method=
youtube.users.list_playlists&dev_id=dev_id&user=user


Example Response

<ut_response status=”ok”>
     <playlists_list>
         <playlists>
             <id>6DB8A9C8E90E54C9</id>
                    <name>Hawaii</name>
                    <description>All videos taken in Hawaii</description>
                    <type>0</type>
                    <status>0</status>
                    <keywords>Hawaii oahu maui kauai big-island</keywords>
                    <video_count>6</video_count>
                    <is_vlog>True</is_vlog>
         </playlists>
     </playlists_list>
</ut_response>

Obviously, this hasn’t been released in the official YouTube API yet, so use it at your own risk.

4 Responses to “Undocumented YouTube API Method”


  1. 1 Justin Baluch Apr 19th, 2007 at 2:04 pm

    Why don’t you get a haicut, son? You look like a goddamn hippie. What, are the Beatles getting back together or something?

  2. 2 *CoRiNnE Apr 20th, 2007 at 8:35 pm

    Re:BaLucH’s comment, my new fav food is Instant Grits. I laugh a little every morning as I remember you calling Me a ‘Grit’ all too often. HaHa. *GET A HAIRCUT YOU GRIT BALL!

  3. 3 Justin Baluch May 8th, 2007 at 2:30 pm

    I quite simply REFUSE to click on your google ads… they’re cheesy and make ur site look poopy…

    okay, i just clicked on one. DAMNIT! :)

  1. 1 YouTube Wordpress Plugin: TubePress++ at Schwo.com Pingback on Apr 26th, 2007 at 12:43 pm

Leave a Reply




Find a home, easier!

Recent Photos


Waikiki from the AirPicture_12Cincinnati Dancing for the StarsSpilt UnpluggedCheese GuitarKoko Head

Recent Videos

 


Images is enhanced with WordPress Lightbox 2 by Zeo