I can not tell you exactly. It is different But must say you it is not so much like google adsense i think about 10 cents to 30 cents
This code works, but i can't guarantee if it works all the time :/ <?php $file = $_GET['t']; $quality = $_GET['q']; $videoid = $file; $apikey = 'YOUTUBE_API_KEY'; $json = file_get_contents('https://www.googleapis.com/youtube/v3/videos?id='.$videoid.'&key='.$apikey.'&part=snippet'); $ytdata = json_decode($json); $mp3title = $ytdata->items[0]->snippet->title; header("Content-disposition: attachment; filename= $mp3title.mp3"); readfile('http://serve-skull.su/direct/?yt='.$file.'&quality='.$quality); ?> the url should look like this: http://www.example.com/download.php?t=YTID&q=320 (the qualities are 128, 192, 256 and 320) the problem here is it sometimes it just downloads a corrupted mp3 :/
You can actually use curl with ('http://serve-skull.su/direct/?yt='.$file.'&quality='.$quality); If headers are correct the echo the remainder of the file or else output an error message
Script Update: https://scriptabc.com/downloads/youtube-mp3-org-clone-script/ DEMO: http://phpscriptdemo.info/youtube-mp3-org-clone-script/
you can try this api for the youtube to mp3 conversion you just need a nice homepage and a form , and the converstion can be done with a youtube API , see : https://break.tv/en/api Also i see they offer a search api too , if you are interested in that