Youtube To Mp3 Script

High quality youtube to mp3 conversion script integration without a hassle.

Try it! How to integrate?


Youtube Download Button Generator
(youtube url or id, make sure it is urlencoded)
(Minimum width is 300px)
px
(Height should not be lower than 100px)
(Leave empty for transparent)
(Can't find your language? Please contact us!)
Copy This code to your website:

How to integrate a Popup?

Let your users to convert video in a separate window. You can set your own logo and link too!

converter example

<head>
    ...
    <script src="http://www.youtubemp3script.com/api/youtubemp3script-v1.js"></script>
</head>
First of all you need to include javascript file in your page header. This library was made as small as possible and it will not impact your page load time.
Optional: You can download script from the following location http://www.youtubemp3script.com/api/youtubemp3script-v1.js and store it on your own server.

How to use?
<a href="http://www.yt-mp3.com/watch?v=YOUTUBE_ID"
   onClick="return YoutubeMp3Script(this)">
    Download MP3
</a>

When script is added, you can add as many youtube to mp3 download links as you want. You only need to edit following attribute:
YOUTUBE_ID - set youtube video id or encoded youtube url.

<a href="http://www.yt-mp3.com/watch?v=7N8b3NZSJoY" onClick="return YoutubeMp3Script(this)">Download MP3</a>

Example with encoded youtube url:

<a href="http://www.yt-mp3.com/watch?v=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D7N8b3NZSJoY"
   onClick="return YoutubeMp3Script(this)">
    Download MP3
</a>

Try it: Download MP3

Note - https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D7N8b3NZSJoY is encoded youtube url of https://www.youtube.com/watch?v=7N8b3NZSJoY.
You can use this tool, to encode url online: http://meyerweb.com/eric/tools/dencoder/
Or use php urlencode function on serverside http://www.php.net/urlencode/

Add your own LOGO!

You can make your users comfortable by adding your own logo to the converter script. Users won't event recognise that they are using different service for youtube to mp3 converting.

<a href="http://api.yt-mp3.com/watch?v=YOUTUBE_ID&logo=LOGO_URL&link=LINK_URL"
    onClick="return YoutubeMp3Script(this)" >
    Download MP3
</a>

LOGO_URL - set your logo url here, it should be URL encoded.
LINK_URL - set your website url here.(Optional)
You can encode url online using this link: http://www.url-encode-decode.com/
Logo best looks then image size is less than 290px on width and 90px on height.


Can I integrate it simpler?

Yes! You can skip all the scripts and let users download with a simple link.

<a href="http://www.yt-mp3.com/watch?v=YOUTUBE_ID">Download MP3</a>

YOUTUBE_ID - set youtube video id or encoded youtube url here

You can also open link in a new tab by adding target="_blank" attribute.

<a href="http://www.yt-mp3.com/watch?v=7N8b3NZSJoY" target="_blank">Download MP3</a>

Can I use API?

API allows you to check, if specific youtube video was converted on our servers. You can also schedule video for a conversion.
Calling api is as simple as sending GET request to http://www.yt-mp3.com/fetch?v=7N8b3NZSJoY&apikey=1234567
We provide details such as:

{
    "status": "ok",
    "id": "7N8b3NZSJoY",
    "title": "Steve Jobs FUNNIEST moments (1978-2011)",
    "thumbnail": "https:\/\/i.ytimg.com\/vi\/7N8b3NZSJoY\/hqdefault.jpg",
    "length": 457,
    "artist": "EverySteveJobsVideo",
    "categories": "People & Blogs",
    "bitrate": "148",
    "average_rating": "4.917",
    "view_count": "539540",
    "progress": 100,
    "ready": true,
    "expires": 1468761047,
    "url": "\/\/dl2.yt-mp3.com\/download\/steve-jobs-funniest-moments-1978-2011.mp3?id=7N8b3NZSJoY&title=Steve+Jobs+FUNNIEST+moments+%281978-2011%29&t=1468746647&extra=a&h=2be5e2dc...",
    "video_url": "\/\/dl2.yt-mp3.com\/download\/video\/steve-jobs-funniest-moments-1978-2011.mp3?id=7N8b3NZSJoY&title=Steve+Jobs+FUNNIEST+moments+%281978-2011%29&t=1468746647&extra=a&h=2be5e2dc..."
}
                

To use it, please contact us. You need to provide how much users do you have and we will decide which plan suits you best.

Using our api without api key is prohibited. App can be banned without a notice.


Any questions?

Don't want ads? Or you don't like waiting in a queue for a video to be converted?
If you have any questions or you are having troubles while trying to integrate this script, please do not hesitate and contact us at info@youtubemp3script.com or use our contact form HERE.