Skip to content

A dead simple Rails API that converts Youtube videos to wav

License

Notifications You must be signed in to change notification settings

jacksonk-price/vert_api

Repository files navigation

VERT

System Dependencies

yt-dlp

ffmpeg

Begin a new conversion

Returns base64 string containing your wav audio.

  • URL

    /conversion/create

  • Method:

    POST

  • Data Params

    Required:

    { input_url: [your_youtube_url] }

  • Success Response:

    • Code: 200
      Content: { video_title : "Rick Astley - Never Gonna Give You Up (Official Music Video)", wav_base64 : [base64 string], message: "Video successfully converted to audio." }
  • Error Response:

    • Code: 500 INTERNAL SERVER ERROR
      Content: { message : "Something went wrong during the audio extraction." }

    • Code: 500 INTERNAL SERVER ERROR
      Content: { message : "Something went wrong during the audio conversion." }

    • Code: 422 UNPROCESSABLE ENTITY
      Content: { message : "URL is invalid" }

    • Code: 429 TOO MANY REQUESTS

  • Sample Call:

      fetch('http://vert-api.onrender.com/conversion/create', {
            method: 'POST',
            headers: { 'Content-Type': 'application/json' },
            body: JSON.stringify({ input_url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" })
          });

About

A dead simple Rails API that converts Youtube videos to wav

Topics

Resources

License

Stars

Watchers

Forks

Languages