Skip to content

Latest commit

 

History

History
49 lines (46 loc) · 920 Bytes

README.md

File metadata and controls

49 lines (46 loc) · 920 Bytes

yt-dler

APIS

  • /api : Get video and audio links for the Youtube URL
    Request Headers :
    {
        method: "GET",
        payload: {
            url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
        }
    }
    Response sample :
    {
        message: "",
        status: "ok",
        url: "https://www.youtube.com/embed/dQw4w9WgXcQ",
        info: [...datas]
    }
  • /isvalid : Check whether the URL is in youtube link format
    Request Headers :
    {
        method: "GET",
        payload: {
            url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
        }
    }
    Response sample :
    {
        message: "",
        status: "ok",
        isvalid: true
    }

Other paths

  • /watch : Play Youtube videos
    Params :
    {
        v: "dQw4w9WgXcQ"    // Youtube video ID
    }