How to download Youtube video in android SD card programmatically

Android is everything for me picture Android is everything for me · Apr 2, 2014 · Viewed 9.5k times · Source

I have YouTube link "https://www.youtube.com/watch?v=ySuYTKkgIvg"

How can I store this video from YouTube to my SD card?

I can play video using YouTube player by android YouTube DATA API but don't know how to download it is any API / code who can help me to do this?

Answer

Lavekush Agrawal picture Lavekush Agrawal · Apr 2, 2014

Youtube API allows you to search & list videos and obtain the mediaplayer URL, so that you can play videos within your web page.

Look here for downloading video from Youtube

Youtube Video Data API

Youtube Java Data API - Getting Started

It does not allow you to download the byte content of videos - because Google is protecting their own rights and the rights of the content creators.

Youtube Google API Terms of Service