API

API Button / Iframe


Imposta lattributo "src" per liframe HTML:

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

... dove{format}è uno dei seguenti:

  • "mp3" : per ilMP3 risultati
  • "videos" : per ilVideo da audio risultati
  • "videostreams" : per ilSolo video risultati
  • "audiostreams" : per ilSolo audio risultati

... e{YouTube-Video-ID} è un qualsiasi ID video di YouTube valido.

Il codice iframe risultante e loutput corrispondente dovrebbero apparire come uno dei seguenti, ad esempio:

<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>

... fai questo:

<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>

... fai questo:

<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>

... fai questo:

<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>

... fai questo: