Gathering detailed insights and metrics for youtube-stream-url
Gathering detailed insights and metrics for youtube-stream-url
Gathering detailed insights and metrics for youtube-stream-url
Gathering detailed insights and metrics for youtube-stream-url
npm install youtube-stream-url
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
56 Stars
43 Commits
22 Forks
3 Watching
1 Branches
4 Contributors
Updated on 25 Oct 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
500%
54
Compared to previous day
Last week
164.5%
164
Compared to previous week
Last month
12.5%
377
Compared to previous month
Last year
-49.8%
4,457
Compared to previous year
2
1
Get stream url from youtube video in node.js (included Copyright Music Video).
With npm do:
1npm install youtube-stream-url
1const Youtube = require('youtube-stream-url');
2
3Youtube.getInfo({url: 'https://www.youtube.com/watch?v=pJ7WN3yome4'}).then(video => console.log(video));
Full output
1{ 2 videoDetails: { 3 videoId: 'pJ7WN3yome4', 4 title: 'M1 Ultra Mac Studio - Benchmarks & Thermals (The TRUTH!)', 5 lengthSeconds: '1165', 6 keywords: [ 7 'mac studio', 8 'mac', 9 'apple', 10 'apple mac', 11 'apple mac studio', 12 'mac studio benchmarks', 13 'mac studio teardown', 14 'mac studio perfornance', 15 'mac studio vs', 16 'm1 ultra', 17 'm1 ultra chip', 18 'm1 ultra mac studio', 19 'm1 ultra vs m1 max', 20 'm1 max vs m1 ultra', 21 'm1 max vs m1 ultra mac studio', 22 'm1 ultra vs m1 max mac studio', 23 'mac studio vs macbook pro', 24 'mac studio vs imac', 25 'mac studio vs mac mini', 26 'mac studio thermal throttle test', 27 'mac studio benchmarks test', 28 'mac studio watt metere', 29 'mac studio max tech', 30 'mac studio ultra' 31 ], 32 channelId: 'UCptwuAv0XQHo1OQUSaO6NHw', 33 isOwnerViewing: false, 34 shortDescription: '...', 35 isCrawlable: true, 36 thumbnail: { thumbnails: [Array] }, 37 averageRating: 4.9487238, 38 allowRatings: true, 39 viewCount: '1124295', 40 author: 'Thái Trinh Official', 41 isPrivate: false, 42 isUnpluggedCorpus: false, 43 isLiveContent: false 44 }, 45 formats: [ 46 { 47 url: 'https://r4---sn-8qj-i5ol7.googlevideo.com/videoplayback...', 48 type: 'video/mp4; codecs="avc1.64001F, mp4a.40.2"', 49 itag: '22', 50 quality: 'hd720' 51 }, 52 ... 53 ], 54 liveData: { //For live video (videoDetails.isLiveContent == true) 55 manifestUrl: 'https://manifest.googlevideo.com/...', 56 data: { 57 segments: [ 58 { 59 "isMasterPlaylist": true, 60 "streamInf": { 61 "bandwidth": 290288, 62 "codecs": [ 63 "mp4a.40.5,avc1.42c00b" 64 ], 65 "resolution": 256, 66 "frameRate": 15, 67 "videoRange": "SDR", 68 "subtitles": "vtt", 69 "closedCaptions": "NONE" 70 }, 71 "url": "https://manifest.googlevideo.com/api/manifest/hls_playlist/.../playlist/index.m3u8" 72 }, 73 ... 74 ], 75 "media": { 76 "SUBTITLES": { 77 "vtt": { 78 "en": { 79 "groupId": "vtt", 80 "uri": "https://manifest.googlevideo.com/...", 81 "type": "SUBTITLES", 82 "language": "en", 83 "name": "en", 84 "default": false, 85 "autoselect": "YES" 86 } 87 } 88 } 89 } 90 } 91 } 92}
For live video, you can get HLS Stream URL via liveData
field. liveData.data
format is m3u8-file-parser output of manifest file from liveData.manifestUrl
.
By default, getInfo
function return false
when an error occurred while process. If you want manualy handle error, you can pass option throwOnError: true
1try {
2 await Youtube.getInfo({url: '...', throwOnError: true})
3} catch (e) {
4 //Handle error here
5}
Since the youtube-stream-url binary is updated regularly, you can run npm update
to check for and download any updates for it.
MIT © Dang Dung
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
2 existing vulnerabilities detected
Details
Reason
Found 2/18 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More