YTAPI example

Successfully tested on Chrome, Firefox, IE, Android, iPad. Useful style and background menu. Easy to use on PHP:

Options 1 will compress media URL and 2 will encrypt

function ytapi($vid,$itag,$opt=0){
$user='insert_domain_here';
$pass='insert_password_here';
date_default_timezone_set("UTC");
$exp=time();
$s=md5($vid.$itag.$exp.$user.$pass);
$ytapi_url='http://s.ytapi.com/';
$ytapi_opt='vid='.$vid.'&itag='.$itag.'&exp='.$exp.'&user='.$user.'&s='.$s;
$url=$ytapi_url.'?'.$ytapi_opt;
$url2=$ytapi_url.'api/'.$vid.'/'.$itag.'/'.$exp.'/'.$user.'/'.$s.'/';
if($itag==1)$url='http://mp3.ytapi.com/mp3/'.$vid.'.mp3?exp='.$exp.'&user='.$user.'&s='.$s.'&title='.$vid.'_YTAPI';
if($opt==1)$url=$ytapi_url.'z/'.base64_encode(gzcompress($ytapi_opt));
if($opt==2)$url=$ytapi_url.'e/'.$user.'/'.base64_encode(openssl_encrypt($ytapi_opt,'AES-128-ECB',$pass));
return $url;
};


Download sources

Direct links: MP3/1 FLV/240p/5 MP4/360p/18 MP4/720p/22

Other: Facebook/360 VKontakte/360 Vimeo/360 Odnoklassniki/360 Twitter/360 Coub/720 DailyMotion/480 Flickr/360
Google Drive/360 Google Drive/720

embed demo