🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

yt-dm-stream-url

Package Overview
Dependencies
Maintainers
0
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yt-dm-stream-url

Get the streaming url's from yt & dm

4.1.2
latest
Source
npm
Version published
Weekly downloads
10
-33.33%
Maintainers
0
Weekly downloads
 
Created
Source

yt-dm-stream-url

Node project to get the live m3u8 streaming links from youtube & dailymotion

Installation

Node.js required

npm install yt-dm-stream-url

Usage

Require YouTube channel-id.

Example:

https://www.youtube.com/channel/your_youtube_channel_id https://www.youtube.com/watch?v=your_youtube_video_id https://www.dailymotion.com/video/your_dailymotion_video_id https://www.hungama.com/live-tv/your_hungama_video_id/

Note:

Only supports links given in above formats

import yt from 'yt-dm-stream-url';

// returns .m3u8 link for the live stream 
await yt.getStream("https://www.youtube.com/channel/UCiLfeVOBJoAPUbiKxrHBcuw")
    .then(data => console.log(data))

    OR

await yt.getStream("https://www.hungama.com/live-tv/dil-se/41239464/")
    .then(data => console.log(data))

Example output:


'https://manifest.googlevideo.com/api/manifest/hls_variant/expire/1671561211/ei/m6uhY42gMteA4-EPlYu0kAM/ip/223.178.21.214/id/2yj5oU6ZfNM.1/source/yt_live_broadcast/requiressl/yes/hfr/1/playlist_duration/30/manifest_duration/30/maudio/1/vprv/1/go/1/pacing/0/nvgoi/1/keepalive/yes/fexp/24001373,24007246/dover/11/itag/0/playlist_type/DVR/sparams/expire,ei,ip,id,source,requiressl,hfr,playlist_duration,manifest_duration,maudio,vprv,go,itag,playlist_type/sig/AOq0QJ8wRQIhAI4HISSkAiN76lFG62EP0h6nN9rob9jUz2_fz3ADyzNfAiAbi-JOQNbbKVpa8dXiu11lpAM_UadQIsrQv2XVMcUi4Q==/file/index.m3u8'

Contribute

Did you find a bug? Do you have an idea or a feature request? Open an issue!

License

ISC

Keywords

yt-dm-stream-url

FAQs

Package last updated on 17 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts