Download Youtube Videos Using Direct Download Links

There are many ways to download youtube videos. Some involves browser addons, some are web services, and there are also some software available that help you download youtube videos.

But its also possible to download a youtube video directly from youtube servers using a direct download link.

To download a youtube video in default quality, open the video page in your browser, then copy and paste this javascript code in your web browser’s address bar:

javascript:window.location.href = ‘http://youtube.com/get_video?video_id=’ + yt.getConfig(‘SWF_ARGS’)[‘video_id’] + “&l=” + yt.getConfig(‘SWF_ARGS’)[‘l’] + “&sk=” + yt.getConfig(‘SWF_ARGS’)[‘sk’] + ‘&t=’ + yt.getConfig(‘SWF_ARGS’)[‘t’];

To download a youtube video in high quality HQ format, copy and paste the following code in the address bar of your browser while on the youtube video page:

javascript:window.location.href = ‘http://youtube.com/get_video?video_id=’ + yt.getConfig(‘SWF_ARGS’)[‘video_id’] + “&fmt=18&l=” + yt.getConfig(‘SWF_ARGS’)[‘l’] + “&sk=” + yt.getConfig(‘SWF_ARGS’)[‘sk’] + ‘&t=’ + yt.getConfig(‘SWF_ARGS’)[‘t’];

To download the youtube video in high definition HD format, copy paste this code in the address bar of your browser while you have the video page open:

javascript:window.location.href = ‘http://youtube.com/get_video?video_id=’ + yt.getConfig(‘SWF_ARGS’)[‘video_id’] + “&fmt=22&l=” + yt.getConfig(‘SWF_ARGS’)[‘l’] + “&sk=” + yt.getConfig(‘SWF_ARGS’)[‘sk’] + ‘&t=’ + yt.getConfig(‘SWF_ARGS’)[‘t’];

Update: Unfortunately, Google has disabled this method of downloading youtube videos and the direct download links no longer work.

share on twitter

Comments

  1. VSub says:

    it doesnt work. error in line 1. Watch = 0 code invalid

  2. Rishabh says:

    The code is tested and works on Firefox 3.5.7 and Chrome 4.0.249.43
    I guess you need to update your browser. Also, I’m not sure about Internet Explorer because I removed it long back from my computer.

    You can save the code as a Bookmark and click it when you want to download it. Works in Firefox & Chrome

Leave a Reply

© 2009-2013 TechyLabs · All Rights Reserved
A threeroutes media Publication