Developer APIs

Single Button API

GET
https://www.yt2mp3s.me/api/single/{FTYPE}?url={VIDEO_URL}

Parameters

FTYPE

mp3, mp4, webm

VIDEO_URL

any YouTube, SoundCloud, Facebook, Twitter, Instagram, TikTok, Vimeo, Dailymotion, VK, or AOL Video URL

iFrame Code:

<iframe src="https://www.yt2mp3s.me/api/single/mp3?url=https://www.youtube.com/watch?v=zvrMzRVtj1s"
width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>

Generates this:

Button API

GET
https://www.yt2mp3s.me/api/button/{FTYPE}?url={VIDEO_URL}

Parameters

FTYPE

mp3, mp4, webm

VIDEO_URL

any YouTube, SoundCloud, Facebook, Twitter, Instagram, TikTok, Vimeo, Dailymotion, VK, or AOL Video URL

iFrame Code:

<iframe id="buttonApi" src="https://www.yt2mp3s.me/api/button/mp3?url=https://www.youtube.com/watch?v=zvrMzRVtj1s"
width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>

Javascript code for automatically resizing:

<!-- Put the Library in your <head> tag -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.2/iframeResizer.min.js"></script>

<!-- Put the resizer code after your <iframe> tag -->
<script>iFrameResize({ log: false, minHeight: 360 }, '#buttonApi')</script>

Generates this:

Widget API

GET
https://www.yt2mp3s.me/api/widget?url={VIDEO_URL}

Parameters

VIDEO_URL

any YouTube, SoundCloud, Facebook, Twitter, Instagram, TikTok, Vimeo, Dailymotion, VK, or AOL Video URL

iFrame Code:

<iframe id="widgetApi" src="https://www.yt2mp3s.me/api/widget?url=https://www.youtube.com/watch?v=zvrMzRVtj1s"
width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>

Javascript code for automatically resizing:

<!-- Put the Library in your <head> tag -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.2/iframeResizer.min.js"></script>

 
<!-- Put the resizer code after your <iframe> tag -->
<script>iFrameResize({ log: false, minHeight: 400 }, '#widgetApi')</script>

Generates this:

Widget v2 API

GET
https://www.yt2mp3s.me/api/widgetv2?url={VIDEO_URL}

Parameters

VIDEO_URL

any YouTube, SoundCloud, Facebook, Twitter, Instagram, TikTok, Vimeo, Dailymotion, VK, or AOL Video URL

iFrame Code:

<iframe id="widgetv2Api" src="https://www.yt2mp3s.me/api/widgetv2?url=https://www.youtube.com/watch?v=zvrMzRVtj1s"
width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>

Javascript code for automatically resizing:

<!-- Put the Library in your <head> tag -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.2/iframeResizer.min.js"></script>

<!-- Put the resizer code after your <iframe> tag -->
<script>iFrameResize({ log: false, minHeight: 400 }, '#widgetv2Api')</script>

Generates this: