YouTube to MP3 Developer API


If you are a developer or own a website using YouTube videos then you can use this super fast API to allow your users to download YouTube videos to MP3 & MP4 formats. API is free of cost with 100% uptime. API supports multiple high quality MP3 formats like 64, 128, 192, 256, 320 kbps & MP4, WebM, 3Gp for videos. Here are the veriables used in the follwoing example with explenation.

https://yt-mp3s.com/@api/button/{format}/{YouTube-Video-ID}

where {format} is one of the following:

  • "mp3" : for MP3 results
  • "videos" : for Video w/Audio results
  • "videostreams" : for Video-Only results
  • "audiostreams" : for Audio-Only results

and {YouTube-Video-ID} is any valid YouTube video ID.

The resulting iframe code and corresponding output should look like one of the following, e.g.:

<iframe class="button-api-frame" src="https://yt-mp3s.com/@api/button/mp3/3r_2lx8NJFU" width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>

<!-- Optional script that automatically makes iframe content responsive. -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.14/iframeResizer.min.js"></script>
<script>iFrameResize({}, '.button-api-frame');</script>

Will generate this for you:

<iframe class="button-api-frame" src="https://yt-mp3s.com/@api/button/videos/3r_2lx8NJFU" width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>

<!-- Optional script that automatically makes iframe content responsive. -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.14/iframeResizer.min.js"></script>
<script>iFrameResize({}, '.button-api-frame');</script>

Will generate this for you:

<iframe class="button-api-frame" src="https://yt-mp3s.com/@api/button/videostreams/3r_2lx8NJFU" width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>

<!-- Optional script that automatically makes iframe content responsive. -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.14/iframeResizer.min.js"></script>
<script>iFrameResize({}, '.button-api-frame');</script>

Will generate this for you:

<iframe class="button-api-frame" src="https://yt-mp3s.com/@api/button/audiostreams/3r_2lx8NJFU" width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>

<!-- Optional script that automatically makes iframe content responsive. -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.14/iframeResizer.min.js"></script>
<script>iFrameResize({}, '.button-api-frame');</script>

Will generate this for you: