Developers

Do you operate your own website? Do you want to give your users the opportunity to convert YouTube videos to mp3 or mp4 files? We'll show you, how easy it is to insert our api into your website.

Our api offers you following services:

Code example (iFrame API):

Download example file: HTML version | PHP version

Code example (iFrame API with parameters):

Furthermore you can add 2 parameter to the iframe scr, so the conversion can start straight away (You can find a overview of the parameters below).

Download example file: HTML version | PHP version

Code example (Button API)

The button api only works with parameters (youtube video id and format). If there are no parameters submitted it will automatically show an error message.

Download example file: HTML version | PHP version

Parameters passing:

HTML version: file.html#YOUTUBE_VIDEO_ID|FORMAT
PHP version: file.php?v=YOUTUBE_VIDEO_ID&f=FORMAT

Parameters:

Code example (Javascript API):

If you want to use our javascript api - you have to embed our javascript api file with a simple script tag on your website and add to each link the class „y2m”.

Download example file: HTML version | PHP version

Attention:

If you own a website with >100.000 users a day, you'll have several other possibilities to include our api - if you need any help to include our api or if you want to get more information please send us an e-mail to info@youtube2mp3.cc.