Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
YouTube and Google video downloaders?

Some time ago, I had a script who got the Flash Video file from a specified YouTube video, which now is broken due to changes at their website.

Does YouTube have an API to download the Flash Video file? If so, where can I find it?

Are some scripts available? How do I built my own script? Are there any scripts in any other languages such as shell/Bash that works? :)

share|improve this question

migrated from stackoverflow.com May 25 '10 at 13:06

This question came from our site for professional and enthusiast programmers.

marked as duplicate by ChrisF, Gnoupi, quack quixote May 25 '10 at 17:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Side Note: Youtube's ToS <i>explicitly</i> forbids downloading their videos unless you're the content uploader. –  user23259 May 24 '10 at 22:05
@Sukasa Then how will you ever watch them? –  Arda Xi May 24 '10 at 22:59
See "How do I download a YouTube video?" at Web Apps SE. –  galacticninja Nov 24 '13 at 13:26

3 Answers 3

I use Greasemonkey and the YouTube HD Suite script

This gives you download links for each of the formats available.

alt text

It also gives you the option to set a default format to watch all videos in (I use it to default to 720p when available as YouTube always gives me 480p)

share|improve this answer

There are scripts and such out there, but YouTube supplies no such official API, and it is borderline illegal to download the videos using a third-party tool.

You may want to look at the open-source application youtube-dl, though.

share|improve this answer
Is it illegal to break a TOS? –  Nitrodist May 24 '10 at 22:06
@Nitrodist: Dunno, but piracy is illegal. –  Mark May 24 '10 at 22:08
@Nitro @Mark that's why I said borderline. But at least techcrunch.com/get-youtube-movie has gotten shut down for providing such a service. Though youtube actually just broke it especially for them. but sent a Cease and Desist in 2006: techcrunch.com/2006/11/15/… –  Earlz May 24 '10 at 22:20
@Mark, but is it an act of piracy? The way YouTube's video is provided to users, it is downloaded to the browser's cache directory on the filesystem already. How is downloading it to a different directory an act of piracy, if downloading it to the cache directory is not? A stronger case can be made for sites that use DRM or real streaming, where the video file never resides on the client machine at all. –  eyelidlessness May 24 '10 at 22:24
It is illegal to break a TOS, seeing as it's regarded as a signed agreement. This is however not in itself comparable to privacy. –  Arda Xi May 24 '10 at 22:59

Here is one:

Youtube Download Script 0.1

See this also

share|improve this answer