Skip to main content

[PHP] Converting a youtube video to audio (mp3) file

Hello,

Lets start...

First of all find a website that provides an API for converting Youtube videos to audio files
- For that you may find a website with url http://youtubeinmp3.com/

Then, visit that website..Follow their documentation/guide for fetching the mp3 from the video and displaying a download button.

Follow this code format -

<a href='//www.youtubeinmp3.com/fetch/?video=https://www.youtube.com/watch?v=i62Zjga8JOM' style='text-decoration:none;color:#03a730;'><img src='//www.youtubeinmp3.com/icon/folder.png' style='vertical-align:middle;'> <strong>Download MP3</strong></a>
Pass the watch link,through the above url..If the url is correct then a download button named "Download MP3" should get generated

You can find addtional customisations to API below in the website (http://youtubeinmp3.com/)


Note : You can save the fetched data in json,xml or plain text format and then use it later or you can fetch the metadata of the Youtube video and do something more amazing..

PS : Downloading or converting youtube videos maybe illegal..Its just for educational purposes.

This project is available on my github account https://github.com/jayantur13/Youtube_video_to_audio_converter

Regards.

Popular posts from this blog

Nationserver.us Free P2H Provider

Some of the vps packages that we had offered : -  ★ Package 1 ★ (5 Total)  1GB Ram 100GB Disk 1000 GB Bandwidth 1 IPv4 - Additional Available SolusVM/OpenVZ - Linux  ★ Package 2 ★ (3 Total) 1GB Ram 2 vCore @ 1GHz 30GB Disk - SSD RAID 10 2TB Bandwidth @ 1Gbps 1 IPv4 - Additional Available SolusVM/OpenVZ - Linux  ★ Package 3 ★ (1 Total) 2GB Ram 2 vCore @ 1.5GHz 50GB Disk - SSD RAID 10 3TB Bandwidth @ 1Gbps 1 IPv4 - Additional Available SolusVM/OpenVZ - Linux  ★ Package 4 ★ (1 Total)  1GB Ram 25GB Disk 1000 GB Bandwidth 1 IPv4 - Additional Available SolusVM/OpenVZ - Linux  ★ Package 5 ★ (2 Total)  512mb Ram 25GB Disk 1000 GB Bandwidth 1 IPv4 - Additional Available SolusVM/OpenVZ - Linux Location (Package 4 & 5 ) [*] Montreal, Quebec, Canada (FREE DDoS protection) [*] Jacksonville, Florida, United States [*] Phoenix, Arizona, United States (FREE DDoS protection) [*] Los Angeles, California Visit - https://nationserver.us/ Regar...
Freedomain.club offers vps and tld's, requritements 50 points to ask for the vps and same to keep it.Following are the vps specification : > 2 CPU Cores > Disk Space: 10GB (SSD Cached) > RAM: 512MB > Bandwidth: 512GB > 1 * IPV4 > Any linux operating system Give it a try. Link : www.freedomain.club

Need a free vps...Join this community right now....

Host4post VPS Community : Join host4post community,visit here - http://host4post.eu/member.php?action=register&referrer=164 Make 30 posts & apply for vps To keep the vps please make 25 posts per month.. Currently available plans - VPS #7 - 12 Available Specifications: RAM: 1024 MB (1 GB) vSwap: Nil Bandwidth: Unlimited; Fair Usage Storage: 30 GB SSD IPs: 1 Dedicated I.P Control Panel: OpenNebula Sunstone Cloud CP Location: Pennsylvania, US Check out the giveaway thread here at http://host4post.eu/Thread-New-VPS-Plan-...-Available Its a rush hour time..