API

Bouton / API Iframe


Définissez lattribut "src" pour liframe HTML:

http://mp3-youtube.cc/@api/button/{format}/{YouTube-Video-ID}

... où{format}est lun des suivants:

  • "mp3" : pour leMP3 Résultats
  • "videos" : pour leVidéo de laudio Résultats
  • "videostreams" : pour leVidéo seulement Résultats
  • "audiostreams" : pour leAudio seulement Résultats

... et{YouTube-Video-ID} est un ID de vidéo YouTube valide.

Le code iframe résultant et la sortie correspondante doivent ressembler à lun des suivants, par exemple:

<iframe class="button-api-frame" src="http://mp3-youtube.cc/@api/button/mp3/CevxZvSJLk8" 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>

... fais ceci:

<iframe class="button-api-frame" src="http://mp3-youtube.cc/@api/button/videos/CevxZvSJLk8" 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>

... fais ceci:

<iframe class="button-api-frame" src="http://mp3-youtube.cc/@api/button/videostreams/CevxZvSJLk8" 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>

... fais ceci:

<iframe class="button-api-frame" src="http://mp3-youtube.cc/@api/button/audiostreams/CevxZvSJLk8" 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>

... fais ceci: