Y
YouTube to MP3 & MP4 Widget
Simple iframe API for developers

Drop-in YouTube to MP3 & MP4 widget for your website

Add a full YouTube converter (audio + video) with a single iframe. No backend required – everything is handled automatically inside the widget.

  • • Simple iframe integration
  • • Automatic height resize
  • • Light & dark theme
  • • Audio (MP3) & video (MP4) downloads
  • • Built-in audio player endpoint
  • • 30% revenue share
Get started →
Live widget preview Example

The widget includes Audio and Video tabs. Loaded from api.ytgoconverter.net.

Widget documentation

The widget is a simple iframe. Pass a YouTube video ID and it will offer both audio (MP3) and video (MP4) download options.

Base URL

https://api.ytgoconverter.net/widget/yt.php?id=ID

Required parameter

id = YouTube video ID

Optional parameter

theme = dark or light
https://api.ytgoconverter.net/widget/yt.php?id=zvrMzRVtj1s&theme=dark

Basic iframe example

<iframe
  class="resizingFrame"
  src="https://api.ytgoconverter.net/widget/yt.php?id=zvrMzRVtj1s"
  width="100%"
  height="100%"
  scrolling="no"
  style="border:none">
</iframe>

Integration steps

  1. 1

    Include the iFrame Resizer

    <script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.9/iframeResizer.min.js"></script>
  2. 2

    Add the widget iframe

    <iframe
      class="resizingFrame"
      src="https://api.ytgoconverter.net/widget/yt.php?id=zvrMzRVtj1s"
      width="100%"
      height="100%"
      scrolling="no"
      style="border:none">
    </iframe>
  3. 3

    Initialize the resizer

    <script>
      iFrameResize(
        { log: false, heightCalculationMethod: 'lowestElement' },
        '.resizingFrame'
      );
    </script>

Built-in player endpoint

A standalone audio player for any YouTube video (MP3 only).

Player URL

https://api.ytgoconverter.net/player.php?v=VIDEO_ID

Example iframe

<iframe
  src="https://api.ytgoconverter.net/player.php?v=ZDYo6vtO8uI"
  width="100%"
  height="480"
  frameborder="0"
  scrolling="no"
  allowtransparency="true">
</iframe>

Live player preview

Replace ZDYo6vtO8uI with any YouTube ID.

Monetization & revenue share

You receive 30% revenue share.

Ads are handled by api.ytgoconverter.net.

Contact the owner to get your partner account.

Good for:

  • Music / entertainment websites
  • Tools & utilities
  • Download platforms
  • Personal / blogging sites