I learned this kind of stuff is against the Youtube API TOS.
You can still see the source here.