Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Youtube video to mp3 converter api
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Youtube video to mp3 converter api

edited May 2019 in Tutorials

Method #1 - JSON REST API

Send an HTTP request to:

https://api.download-lagu-mp3.com/@api/json/{format}/{YouTube-Video-ID}

...where {format} is one of the following:

"mp3" : for MP3 results
"videos" : for Video w/Audio results
"mergedstreams" : for Merged Video + Audio results
"videostreams" : for Video-Only results
"audiostreams" : for Audio-Only results

...and {YouTube-Video-ID} is any valid YouTube video ID.

The API request and corresponding JSON response should look like one of the following, e.g.:

GET https://api.download-lagu-mp3.com/@api/json/mp3/CevxZvSJLk8 HTTP/1.1

Method #2 - Button/Iframe API

Set the "src" attribute of an HTML iframe to:

https://api.download-lagu-mp3.com/@api/button/{format}/{YouTube-Video-ID}

...where {format} is one of the following:

"mp3" : for MP3 results
"videos" : for Video w/Audio results
"mergedstreams" : for Merged Video + Audio results
"videostreams" : for Video-Only results
"audiostreams" : for Audio-Only results
...and {YouTube-Video-ID} is any valid YouTube video ID.

The resulting iframe code and corresponding output should look like one of the following, e.g.:

<iframe class="button-api-frame" src="https://api.download-lagu-mp3.com/@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>

Thanked by 1pike

Comments

  • Or maybe just heads up directly go to ytmp3 dot cc :neutral:

  • jajaja Roar!!

  • vovlervovler Member

    Just use youtube-dl, no need for third-party websites that will eventually die

  • pikepike Veteran

    Is this your service or are you recommending it?

  • Things can be as complicated as you make them.

  • YuraYura Member
    edited May 2019

    @Spotlight said:
    Things can be as complicated as you make them.

    You would not expect anything less obvious from a person feeling necessity to write BEATLES under those 4 heads.

  • edfoxedfox Member

    Ew lossy to lossy transcoding.

    Just list all of your favourite formats with youtube-dl -F https://youtu.be/video-id and then decide if you want opus or m4a or whatever with youtube-dl -f [format_id] or youtube-dl -f opus/m4a

    Thanked by 1drunkendog
  • @Yura said:

    @Spotlight said:
    Things can be as complicated as you make them.

    You would not expect anything less obvious from a person feeling necessity to write BEATLES under those 4 heads.

    Be honest, take away the name and not many can instantly recognize them in such a small avatar.
    However, we can all instantly recognize you as a pussy.

  • varwwwvarwww Member

    +1 youtube-dl. Don't use these summer API's :P

    Thanked by 1drunkendog
  • YuraYura Member
    edited May 2019

    @Spotlight said:

    @Yura said:

    @Spotlight said:
    Things can be as complicated as you make them.

    You would not expect anything less obvious from a person feeling necessity to write BEATLES under those 4 heads.

    Be honest, take away the name and not many can instantly recognize them in such a small avatar.
    However, we can all instantly recognize you as a pussy.

    You did it again. Unbelievable. You actually can't not state the obvious. I'm all ears for your next big revelation.

    T h i c c P u s s y

  • @Yura said:

    @Spotlight said:

    @Yura said:

    @Spotlight said:
    Things can be as complicated as you make them.

    You would not expect anything less obvious from a person feeling necessity to write BEATLES under those 4 heads.

    Be honest, take away the name and not many can instantly recognize them in such a small avatar.
    However, we can all instantly recognize you as a pussy.

    You did it again. Unbelievable. You actually can't not state the obvious. I'm all ears for your next big revelation.

    Yeah, but mark my words, I enjoyed stating the obvious in your case.

  • edited May 2019

    @pike said:
    Is this your service or are you recommending it?

    Hi Pike, this is our service and we recommend it to those who need it, as this api is being used on many websites for their downstream needs.

  • @vovler said:
    Just use youtube-dl, no need for third-party websites that will eventually die

    Hi Vovler, we guarantee uptime for this api server, and this service will be sustainable.

  • xaocxaoc Member

    @Yura said:

    @Spotlight said:
    Things can be as complicated as you make them.

    You would not expect anything less obvious from a person feeling necessity to write BEATLES under those 4 heads.

    Yea but how are the freshly spawned people supposed to know those heads? :D

  • Hi friends, the address moved here https://api.vevioz.com

  • I used this https://convert2mp4.top/ everything is ok B)

  • raindog308raindog308 Administrator, Veteran
    edited April 2021
    youtube-dl -x --audio-format mp3 --prefer-ffmpeg (url)
    

    image

Sign In or Register to comment.