JSPM

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

Get stream url from youtube link

Package Exports

  • youtube-stream-url
  • youtube-stream-url/src/index.js

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=pJ7WN3yome4'})
  .then(video => console.log(video));
  
  /* video
  { 
    videoDetails: {
      videoId: 'pJ7WN3yome4',
      title: 'M1 Ultra Mac Studio - Benchmarks & Thermals (The TRUTH!)',
      lengthSeconds: '1165',
      keywords: [
        'mac studio',
        'mac',
        'apple',
        'apple mac',
        'apple mac studio',
        'mac studio benchmarks',
        'mac studio teardown',
        'mac studio perfornance',
        'mac studio vs',
        'm1 ultra',
        'm1 ultra chip',
        'm1 ultra mac studio',
        'm1 ultra vs m1 max',
        'm1 max vs m1 ultra',
        'm1 max vs m1 ultra mac studio',
        'm1 ultra vs m1 max mac studio',
        'mac studio vs macbook pro',
        'mac studio vs imac',
        'mac studio vs mac mini',
        'mac studio thermal throttle test',
        'mac studio benchmarks test',
        'mac studio watt metere',
        'mac studio max tech',
        'mac studio ultra'
      ],
      channelId: 'UCptwuAv0XQHo1OQUSaO6NHw',
      isOwnerViewing: false,
      shortDescription: '...',
      isCrawlable: true,
      thumbnail: { thumbnails: [Array] },
      averageRating: 4.9487238,
      allowRatings: true,
      viewCount: '1124295',
      author: 'Thái Trinh Official',
      isPrivate: false,
      isUnpluggedCorpus: false,
      isLiveContent: false
    },
    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