JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2076
  • Score
    100M100P100Q124093F
  • License MIT

Get stream url from youtube link

Package Exports

  • youtube-stream-url

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (youtube-stream-url) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

youtube-stream-url

Get stream url from youtube video in node.js.

Installation

With npm do:

npm install youtube-stream-url

Usage

const Youtube = require('youtube-stream-url');

Youtube.getInfo({url: 'https://www.youtube.com/watch?v=J5yTcZ0OKlI'})
  .then(video => console.log(video));
  
  /* video
  { 
    video_id: 'J5yTcZ0OKlI',
    title: 'Báo chí quốc tế "cạn lời" với phong độ của U23 Việt Nam, lịch thi đấu trận chung kết với Uzbekistan',
    thumbnail_url: 'http://i.ytimg.com/vi/J5yTcZ0OKlI/default.jpg',
    view_count: '105114',
    length_seconds: '431',
    allow_embed: '1',
    author: 'Thể thao Việt Nam',
    formats: 
    [
      {
        url: 'https://r4---sn-8qj-i5ol7.googlevideo.com/videoplayback...',
        type: 'video/mp4; codecs="avc1.64001F, mp4a.40.2"',
        itag: '22',
        quality: 'hd720'
       },
       ...
     ]
   }
  */

Update

Since the youtube-stream-url binary is updated regularly, you can run npm update to check for and download any updates for it.

License

MIT © Dang Dung