Converter Developer APIs
Single Button API
GET
https://yt2be.com/api/single/{FTYPE}?url={VIDEO_URL}
Parameters
FTYPE
mp3, mp4
VIDEO_URL
any YouTube URL
iFrame Code for mp3:
<iframe src="https://yt2be.com/api/single/mp3?url=https://www.youtube.com/watch?v=pRpeEdMmmQ0"
width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>
Generates this:
iFrame Code for mp4:
<iframe src="https://yt2be.com/api/single/mp4?url=https://www.youtube.com/watch?v=pRpeEdMmmQ0"
width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>
Generates this:
Button API
GET
https://yt2be.com/api/button/{FTYPE}?url={VIDEO_URL}
Parameters
FTYPE
mp3, mp4
VIDEO_URL
any YouTube
iFrame Code:
<iframe id="multiButtonApi" src="https://yt2be.com/api/button/mp3?url=https://www.youtube.com/watch?v=pRpeEdMmmQ0"
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.9/iframeResizer.min.js"></script>
<!-- Put the resizer code after your <iframe> tag -->
<script>iFrameResize({ log: false, heightCalculationMethod: 'lowestElement' }, '#multiButtonApi')</script>
Generates this:
Widget API
GET
https://yt2be.com/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://yt2be.com/api/widget?url=https://www.youtube.com/watch?v=pRpeEdMmmQ0"
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.9/iframeResizer.min.js"></script>
<!-- Put the resizer code after your <iframe> tag -->
<script>iFrameResize({ log: false }, '#widgetApi')</script>
Generates this:
Widget v2 API
GET
https://yt2be.com/api/widgetplus?url={VIDEO_URL}
Parameters
VIDEO_URL
any YouTube Video URL
iFrame Code:
<iframe id="widgetv2Api" src="https://yt2be.com/api/widgetplus?url=https://www.youtube.com/watch?v=pRpeEdMmmQ0"
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.9/iframeResizer.min.js"></script>
<!-- Put the resizer code after your <iframe> tag -->
<script>iFrameResize({ log: false }, '#widgetPlusApi')</script>
Generates this: