Youtube Data API in AS3 is ready!

10 actionscript,as3,flash,webservices,work,youtube  |   February 15, 2008  |     489

Hello again,

I’ve gotten to a good level in my Youtube Data API. It’s now ready for use, I would recommend testing it a bit before putting into a production environment, but for experimenting and toying around, works good!

Here is a quick sample:

there you go. I hope I didn’t make any mistakes in this code. I will look upon it again on monday as I will be writing a tutorial for this library.

Have a good day!


The project is now available at Google Code, here:



  • March 27, 2008 at 1:49 pm

    gonzalo geraldo

    Hi, im playing with the library and i have a few problems: in this code there is an error with line 48: video.viewCount.
    Throws me an error 1010

    another question: how can i to accede at the rating. Im trying with this in the while:

    video.rating.numRaters but it does’nt work

    thanks a lot and sorry for my english

  • March 29, 2008 at 4:27 am


    Sometimes there is no data (for example in this case, if there are no ratings) returned by the feed, and it causes errors when trying to access it. It is a pretty serious issue I have to resolve. I am on vacation now, I will take care of it mid-april when I come back home.

    Thanks for your comments…

  • March 31, 2008 at 3:45 pm

    gonzalo Geraldo

    Thanks for your answer and enjoy your vacation 😀

    I verified on youtube to see if the video loaded it has rating and it fails too…

    its ok this expresion => video.rating.numRaters ??


  • May 3, 2008 at 1:13 am


    hi there – awesome work.
    I am attempting to pull an xml feed from a youTube user profile into Doug McCunes ‘coverFlow’ Flex component.

    I know you have looked at the Flex IDE – do you have any comments/thoughts as to how I might go about this?


  • May 23, 2008 at 1:22 pm


    Jason: sorry I don’t do Flex.

  • July 14, 2008 at 2:53 pm


    Martin — great work.
    Is it possible, now, to load an .flv from a videoID or do I have to load the .swf which would include all of the the standard next video stuff after the video has played.


  • July 27, 2008 at 3:04 pm

    billy Ash

    i just wana know that if it is possible to get video by searching a youtube URL…means if i paste youTube URL into a text input field will it be possible to get all information about that specific page/video…



    Billy Ash

  • November 5, 2008 at 3:26 pm



    I am using this AS3 class library load youtube thumbnail images into my flash interface. Now everything is working fine If I am running this on my computer locally but once I upload it to a live webserver it doesnot load the thumbnail images.

    Any idea of why this is not working is this something to do with AS3 security sandbox or other security related isseues?

    Thanks for your help in advance

  • March 9, 2009 at 2:03 pm


    hi, I have the same issue yolo, does somebody know about this?

    When I put my site in my server, the player doesn’t show anything, I just can see y my navigator status bar the leyend “… waiting for…..

  • July 28, 2009 at 1:29 pm


    Thanks for the hard work, probably going to use it for a client project this month.

Leave a Reply