rahad-media-downloader
v2.1.14
Published
Fetch Url Downloads From Facebook & TikTok & Instagram
Downloads
33,583
Maintainers
Keywords
Readme
All downloader :
Instalation :
> npm i rahad-all-downloader
Example (all downloader request)
const { alldl } = require('rahad-all-downloader');
const videoUrl = ''; // Insert a supported URL from YouTube, Facebook, TikTok, Instagram, Twitter, Google Drive, or Capcut.
async function downloadVideo(url) {
try {
const result = await alldl(url);
console.log(result);// all response same
} catch (error) {
console.error('Error:', error.message);
}
}
downloadVideo(videoUrl);
Output Example
{
"metadata": {
"Author": "Mohammad Rahad",
"message": "any problem please contact me",
"Facebook": "https://www.facebook.com/md.rahad.hosain18"
},
"data": {
"title": "ভালোবাসার মাঝে দুঃখ কষ্ট তো থাকবেই \nতার পরও শেষ টা সুন্দর হলেই হলো।",
"videoUrl": "https://video-ord5-2.xx.fbcdn.net/o1/v/t2/f2/m69/An-LG-mxljb9dfsGidTTV1zUJhcS4gRhTpsW9Vt6QkMswkLmCnvPdnJR9LaHWFkw3ggQdk1R5Tl1vl2Su8awWLIU.mp4?efg=eyJ2ZW5jb2RlX3RhZyI6Im9lcF9oZCJ9&_nc_ht=video-ord5-2.xx.fbcdn.net&_nc_cat=108&strext=1&vs=30fddamyiakXvrd0wnre0gCfiGYqOztiTw&oe=6665CA75&_nc_sid=1d576d&_nc_rid=438836236495732&_nc_store_type=1"
}
}
Installation
You can install
rahad-all-downloader
using npm:
npm install rahad-all-downloader
rahad-media-downloader
Instalation :
> npm i rahad-media-downloader
Example (Facebook)
const fb = require('rahad-media-downloader');
const facebookUrl = 'https://www.facebook.com/share/v/Bbc4kPH9t1XXSJrA/?mibextid=oFDknk';
async function mainFB() {
try {
const result = await fb.rahadfbdl(facebookUrl);
console.log(result);
} catch (error) {
console.error('Error:', error.message);
}
}
mainFB();
Output Example Facebook
{
"metadata": {
"Author": "Mohammad Rahad",
"message": "any problem please contact me",
"Facebook": "https://www.facebook.com/md.rahad.hosain18"
},
"data": {
"msg": "success",
"duration_ms": null,
"title": "- কোনো একদিন আমাদের এভাবেই দেখা হয়ে যাবে..!🙂💔🥀",
"sd": "https://video.fbom44-1.fna.fbcdn.net/v/t42.1790-2/431379425_954861172931651_4682667443053324355_n.mp4?_nc_cat=106&ccb=1-7&_nc_sid=55d0d3&efg=eyJybHIiOjMwMCwicmxhIjo1MTIsInZlbmNvZGVfdGFnIjoic3ZlX3NkIiwidmlkZW9faWQiOjEwNTgzNTk1ODUzMzI0MjN9&_nc_ohc=xRFwXjptbtIAb6TzePA&rl=300&vabr=154&_nc_ht=video.fbom44-1.fna&oh=00_AfCf6cQ_d3JGn1sXUYJukIz7XbUbZ0xJl5ZVUI3bZRDspQ&oe=6627F022",
"hd": "https://video.fbom44-1.fna.fbcdn.net/o1/v/t2/f1/m69/GDxajRnFzdpNUeUAAKl31mS_l0lsbmdjAAAF.mp4?efg=eyJ2ZW5jb2RlX3RhZyI6Im9lcF9oZCJ9&_nc_ht=video.fbom44-1.fna.fbcdn.net&_nc_cat=103&strext=1&vs=5d543cf58e02b009&_nc_vs=HBksFQIYOnBhc3N0aHJvdWdoX2V2ZXJzdG9yZS9HRHhhalJuRnpkcE5VZVVBQUtsMzFtU19sMGxzYm1kakFBQUYVAALIAQAVAhg6cGFzc3Rocm91Z2hfZXZlcnN0b3JlL0dMajF0UmxQS2U1cU9CWU5BSHNxV1I1RHZvWUtidjRHQUFBRhUCAsgBAEsHiBJwcm9ncmVzc2l2ZV9yZWNpcGUBMQ1zdWJzYW1wbGVfZnBzABB2bWFmX2VuYWJsZV9uc3ViACBtZWFzdXJlX29yaWdpbmFsX3Jlc29sdXRpb25fc3NpbQAoY29tcHV0ZV9zc2ltX29ubHlfYXRfb3JpZ2luYWxfcmVzb2x1dGlvbgAddXNlX2xhbmN6b3NfZm9yX3ZxbV91cHNjYWxpbmcAEWRpc2FibGVfcG9zdF9wdnFzABUAJQAcjBdAAAAAAAAAABERAAAAJszG1NSpnOQCFQIoAkMzGAt2dHNfcHJldmlldxwXQFa90vGp%2B%2BcYIWRhc2hfZ2VuMmh3YmFzaWNfaHEyX2ZyYWdfMl92aWRlbxIAGBh2aWRlb3MudnRzLmNhbGxiYWNrLnByb2Q4ElZJREVPX1ZJRVdfUkVRVUVTVBsKiBVvZW1fdGFyZ2V0X2VuY29kZV90YWcGb2VwX2hkE29lbV9yZXF1ZXN0X3RpbWVfbXMBMAxvZW1fY2ZnX3J1bGUHdW5tdXRlZBNvZW1fcm9pX3JlYWNoX2NvdW50BjYzNTI5MRFvZW1faXNfZXhwZXJpbWVudAAMb2VtX3ZpZGVvX2lkEDEwNTgzNTk1ODUzMzI0MjMSb2VtX3ZpZGVvX2Fzc2V0X2lkDzMwOTkzMDY4NTA2NDE0NBVvZW1fdmlkZW9fcmVzb3VyY2VfaWQPNzgzMzM4OTA3MDEzNTQyHG9lbV9zb3VyY2VfdmlkZW9fZW5jb2RpbmdfaWQPOTU2NzU5MTAyNDY0MTEzDnZ0c19yZXF1ZXN0X2lkACUCHAAlvgEbB4gBcwQyMzc2AmNkCjIwMjQtMDMtMDUDcmNiBjYzNTIwMANhcHAURmFjZWJvb2sgZm9yIEFuZHJvaWQCY3QZQ09OVEFJTkVEX1BPU1RfQVRUQUNITUVOVBNvcmlnaW5hbF9kdXJhdGlvbl9zCTkwLjkyOTUwMQJ0cxVwcm9ncmVzc2l2ZV9lbmNvZGluZ3MA&ccb=9-4&oh=00_AfDtoun1NoOkFRJ_qdmNo0gSV7NCiQxzaWzjdEtvuQC0oQ&oe=6624219C&_nc_sid=1d576d&_nc_rid=009437937591417&_nc_store_type=1",
"thumbnail": "https://scontent.fbom44-1.fna.fbcdn.net/v/t15.5256-10/429254941_757978266008112_4390185325421785526_n.jpg?stp=dst-jpg_p960x960&_nc_cat=104&ccb=1-7&_nc_sid=5f2048&_nc_ohc=hFQ17MX-CXoAb7ThTIf&_nc_ht=scontent.fbom44-1.fna&oh=00_AfDjlCnQ_vcUslCKoefXW4FSDIY26mTwpcG-XLdHu13iFQ&oe=662804B4"
}
}
Example (TikTok)
const tik = require('rahad-media-downloader');
const tiktokUrl = 'https://vt.tiktok.com/ZSFtDDGwa/';
async function main() {
try {
const result = await tik.rahadtikdl(tiktokUrl);
console.log(result);
} catch (error) {
console.error('Error:', error.message);
}
}
main();
Output Example (tikTok)
{
"Author": "Mohammad Rahad",
"message": "any problem please contact me",
"Facebook": "https://www.facebook.com/md.rahad.hosain18"
};
{
"msg": "success",
"processed_time": 0.3334,
"title": "Instagram...👉wasik_ariyan_02👈 Fb Page..or..Yt...👉Wasik Ariyan👈 #wasik #ariyan #farhan #blackdiamond #wasikariyan143 #wasik_ariyan_02 #wasik_farhan_02 @TikTok ",
"play_count": 708968,
"react_count": 120845,
"comment_count": 4200,
"share_count": 4851,
"noWatermarkMp4": "https://www.tikwm.com//video/media/play/7357996326723915009.mp4",
"watermarkMp4": "https://www.tikwm.com//video/media/wmplay/7357996326723915009.mp4",
"musicInfo": {
"title": "original sound - wasik_ariyan_02",
"music": "https://sf16-ies-music-sg.tiktokcdn.com/obj/tiktok-obj/7357996342344403728.mp3",
"author": "😻“….Wʌsɩĸ Aʀɩƴʌŋ....”😻",
"original": true,
"duration": 14,
"album": ""
},
"region": "BD",
"download_count": 4177,
"create_time": 1713167031,
"avatar": "https://www.tikwm.com//video/avatar/7357996326723915009.jpeg",
"cover": "https://www.tikwm.com//video/cover/7357996326723915009.webp",
}
Example (Instagram)
const insta = require('rahad-media-downloader');
const instaUrl = 'https://www.instagram.com/reel/C5xU8OoRwdd/?igsh=MTM1MzF0M2szMTEwdg==';
async function main() {
try {
const result = await insta.rahadinsta(instaUrl);
console.log(result);
} catch (error) {
console.error('Error:', error.message);
}
}
main();
Output Example (Instagram)
{
"metadata": {
"Author": "Mohammad Rahad",
"message": "any problem please contact me",
"Facebook": "https://www.facebook.com/md.rahad.hosain18"
},
"data": {
"status": true,
"thumbnail_src": "https://scontent.cdninstagram.com/v/t51.29350-15/438814136_442801938217287_2625241697495574028_n.jpg?stp=c0.210.540.540a_dst-jpg_e15&_nc_ht=scontent.cdninstagram.com&_nc_cat=103&_nc_ohc=1w2H60hJlCMAb7BuDfz&edm=APs17CUBAAAA&ccb=7-5&oh=00_AfBdUx9h1kmGx3GTSbyAtuplDNqhkgFOrA83AlN74l2sYQ&oe=6622D000&_nc_sid=10d13b",
"display_url": "https://scontent.cdninstagram.com/v/t51.29350-15/438814136_442801938217287_2625241697495574028_n.jpg?stp=dst-jpg_e15&_nc_ht=scontent.cdninstagram.com&_nc_cat=103&_nc_ohc=1w2H60hJlCMAb7BuDfz&edm=APs17CUBAAAA&ccb=7-5&oh=00_AfC9ZffFXwLhRvUw-QHr_V1acpWWRdJdhqvIUQKTkG4Fzw&oe=6622D000&_nc_sid=10d13b",
"display_resources": [
{
"src": "https://scontent.cdninstagram.com/v/t51.29350-15/438814136_442801938217287_2625241697495574028_n.jpg?stp=dst-jpg_e15&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi41NDB4OTYwLnNkci5mMjkzNTAifQ&_nc_ht=scontent.cdninstagram.com&_nc_cat=103&_nc_ohc=1w2H60hJlCMAb7BuDfz&edm=APs17CUBAAAA&ccb=7-5&oh=00_AfDO39Ishu2v1tWxwX4PO6amYSzoeqfY3cPttiuaYJ_K3w&oe=6626C480&_nc_sid=10d13b",
"config_width": 640,
"config_height": 1137
},
{
"src": "https://scontent.cdninstagram.com/v/t51.29350-15/438814136_442801938217287_2625241697495574028_n.jpg?stp=dst-jpg_e15&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi41NDB4OTYwLnNkci5mMjkzNTAifQ&_nc_ht=scontent.cdninstagram.com&_nc_cat=103&_nc_ohc=1w2H60hJlCMAb7BuDfz&edm=APs17CUBAAAA&ccb=7-5&oh=00_AfDO39Ishu2v1tWxwX4PO6amYSzoeqfY3cPttiuaYJ_K3w&oe=6626C480&_nc_sid=10d13b",
"config_width": 750,
"config_height": 1333
},
{
"src": "https://scontent.cdninstagram.com/v/t51.29350-15/438814136_442801938217287_2625241697495574028_n.jpg?stp=dst-jpg_e15&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi41NDB4OTYwLnNkci5mMjkzNTAifQ&_nc_ht=scontent.cdninstagram.com&_nc_cat=103&_nc_ohc=1w2H60hJlCMAb7BuDfz&edm=APs17CUBAAAA&ccb=7-5&oh=00_AfDO39Ishu2v1tWxwX4PO6amYSzoeqfY3cPttiuaYJ_K3w&oe=6626C480&_nc_sid=10d13b",
"config_width": 1080,
"config_height": 1920
}
],
"has_audio": true,
"video_url": "https://scontent.cdninstagram.com/v/t50.2886-16/438686059_7653826204638916_8450889029199254472_n.mp4?_nc_ht=scontent.cdninstagram.com&_nc_cat=104&_nc_ohc=V3x2kpUv6w4Ab4QEnDH&edm=APs17CUBAAAA&ccb=7-5&oh=00_AfCLftpLXtz2_nARi_xBkVEdgL3AcBy4I1jCC2dlEeBMKw&oe=6622A9A5&_nc_sid=10d13b",
"video_view_count": 19370,
"product_type": "clips",
"title": "",
"video_duration": 4.783,
"clips_music_attribution_info": {
"artist_name": "riya_maity1553",
"song_name": "Original audio",
"uses_original_audio": true,
"should_mute_audio": false,
"should_mute_audio_reason": "",
"audio_id": "7340490632739267"
},
"is_video": true,
"owner": {
"id": "52136742599",
"username": "sathi.das_",
"is_verified": false,
"profile_pic_url": "https://scontent.cdninstagram.com/v/t51.2885-19/434722099_953669686124465_6791372127361850309_n.jpg?stp=dst-jpg_s150x150&_nc_ht=scontent.cdninstagram.com&_nc_cat=105&_nc_ohc=6bQ8-3RPQ5EAb5VrfTi&edm=APs17CUBAAAA&ccb=7-5&oh=00_AfBLPcYygq7YhoTwAcUKWX4cUH4hQOghQZLW38bjXA600g&oe=6626B5F0&_nc_sid=10d13b",
"blocked_by_viewer": false,
"restricted_by_viewer": null,
"followed_by_viewer": false,
"full_name": "⬳҉≛⃝অবুজ বালিকা࿐🧿",
"has_blocked_viewer": false,
"is_embeds_disabled": false,
"is_private": false,
"is_unpublished": false,
"requested_by_viewer": false,
"pass_tiering_recommendation": true,
"edge_owner_to_timeline_media": {
"count": 81
},
"edge_followed_by": {
"count": 212586
}
},
"edge_media_to_caption": {
"edges": [
{
"node": {
"created_at": "1713329409",
"text": "বলো দেখি💋",
"id": "18062377975536785"
}
}
]
},
"edge_media_to_comment": {
"count": 197,
"page_info": {
"has_next_page": true,
"end_cursor": ""
},
"edges": []
},
"edge_media_preview_like": {
"count": 2567,
"edges": []
}
}
}
Example (YouTube)
const insta = require('rahad-media-downloader');
const yturl = 'https://youtu.be/keikiWq-a7Q?si=g3KdH-e9tiE_JK7Z';
async function main() {
try {
const result = await insta.rahadytdl(yturl);
console.log(result);
} catch (error) {
console.error('Error:', error.message);
}
}
main();
Output Example (YouTube)
{
"metadata": {
"Author": "Mohammad Rahad",
"message": "any problem please contact me",
"Facebook": "https://www.facebook.com/md.rahad.hosain18"
},
"info": {
"status": "success",
"processingTime": "2.42s",
"title": "তুই হইলা সোনার পিঞ্জর ময়না {slowed+reverb} Tui Hoila Sonar Pinjar Mayana TikTok Viral Lofi Song 2024",
"duration": "0:6:6",
"thumbnailUrl": "https://i.ytimg.com/vi/keikiWq-a7Q/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLDXgnebD2rQzcAZ_cFqDrXa5tOy8A",
"uploadTime": "2024-03-28T02:00:36-07:00",
"channelName": "Lofi Editor Sayem",
"channelAvatar": "https://yt3.ggpht.com/Tg4r7bCp1lRcce3WEe0zQvaMRt7v1OLDGVJW8oVtJqZ2idmH8tsL-BpGv-4Ux9pi3VC49NwL=s48-c-k-c0x00ffffff-no-rj",
"channelCover": "Channel cover URL not available",
"viewCount": "1055493",
"likes": null,
"dislikes": null,
"keywords": [
"তুই হইলা সোনার পিঞ্জর ময়না slowed reverb",
"Tui Hoila Sonar Pinjar Mayana TikTok Viral Lofi Song 2024",
"sad Lofi Song",
"TikTok Viral Lofi Song",
"ma bapere lagai dibo mabapere lagai dibo Lofi Song",
"ma bapere lagai dibo Slowed Reverb",
"bain_duar_lofi",
"maa_bapere_lagai_dibo_lofi",
"tanding Song",
"টিকটক ভাইরাল গান",
"তুই হইলা সুনার",
"তুই হইলা সোনার পিঞ্জর ময়না Song"
],
"audioLink": "https://rr1---sn-cvh76nes.googlevideo.com/videoplayback?expire=1713539008&ei=YDMiZpigA5210-kP8P2y-Aw&ip=34.100.233.67&id=o-AMkL6kwiYVSNi0ME4DIBU1oVELLf_9DTZeeQE4edzCvq&itag=251&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=jn&mm=31%2C29&mn=sn-cvh76nes%2Csn-cvh7knzk&ms=au%2Crdu&mv=u&mvi=1&pl=20&bui=AaUN6a0iq_zSuaDry-Fui2lH96g0ZMNcBnh5tovKOm04PB204vp161wNiepelq_8pnu6mm40rSVuM4kp&spc=UWF9f14wRIf-jcTrWzO-GLwEyc_SXWvvRifoIdqXhq0n4FnTAgwt2_N1-i-F&vprv=1&svpuc=1&mime=audio%2Fwebm&ns=bvkbP_tzkTxaY68STnE-MAYQ&gir=yes&clen=6047564&dur=365.301&lmt=1711925864592645&mt=1713516535&fvip=3&keepalive=yes&c=WEB&sefc=1&txp=5532434&n=KKMZ-edNUqEFRA&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRgIhALDRXJfTbREQAnJIi-4zy83Fu4qZHVwJoYTKie8i5kuLAiEAlRmYXflaGTwru-nNPGzbuC3o59s-CtYRxqAtvD8VdP8%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl&lsig=ALClDIEwRAIgarfmRa5QPBwD3mha-X0Kn1f3iO_kLXm5V_5cvEmdexwCIFksUWr2nrKDe42vpzOzGgkHxEumd1ZTcu5NwwIWedvj",
"videoLinks": {
"medium": "https://rr1---sn-cvh76nes.googlevideo.com/videoplayback?expire=1713539008&ei=YDMiZpigA5210-kP8P2y-Aw&ip=34.100.233.67&id=o-AMkL6kwiYVSNi0ME4DIBU1oVELLf_9DTZeeQE4edzCvq&itag=18&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=jn&mm=31%2C29&mn=sn-cvh76nes%2Csn-cvh7knzk&ms=au%2Crdu&mv=u&mvi=1&pl=20&bui=AaUN6a2mzQzzj99HXjy3MvM3cvBClGeORjNFeQmFALnxHwclQQM6WculRDECZJGBf2WncNHAUxu0Wowc&spc=UWF9f14wRIf-jcTrWzO-GLwEyc_SXWvvRifoIdqXhq0n4FnTAgwt2_N1-i-F&vprv=1&svpuc=1&mime=video%2Fmp4&ns=qucPmBF3dgIXU00aJAj9YogQ&gir=yes&clen=29079037&ratebypass=yes&dur=365.342&lmt=1711928830254128&mt=1713516535&fvip=3&c=WEB&sefc=1&txp=5538434&n=_iGDCbs0DcAjEg&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&sig=AJfQdSswRQIgSLDqEM80AbzNJCTxDsHw9iwcwSn1rtPMxFVKV9kfUOACIQDlATgbzbULeytkWEJXbdFVxp2iYIIoSZo52ckLOjpkkA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl&lsig=ALClDIEwRAIgarfmRa5QPBwD3mha-X0Kn1f3iO_kLXm5V_5cvEmdexwCIFksUWr2nrKDe42vpzOzGgkHxEumd1ZTcu5NwwIWedvj"
}
}
}
Example (GDriveLink )
const insta = require('rahad-media-downloader');
const drivelink = 'https://drive.google.com/file/d/1CUZIlfk1owwUElY55d6DVsdAHjfYvz4F/view?usp=drivesdk';
async function main() {
try {
const result = await insta.gdriveLink (drivelink);
console.log(result);
} catch (error) {
console.error('Error:', error.message);
}
}
main();
Output Example (drivelink)
{
"metadata": {
"Author": "Mohammad Rahad",
"message": "any problem please contact me",
"Facebook": "https://www.facebook.com/md.rahad.hosain18"
},
"data": "https://drive.usercontent.google.com/download?id=1CUZIlfk1owwUElY55d6DVsdAHjfYvz4F&export=download"
}
Installation
You can install rahad-media-downloader
using npm:
npm install rahad-media-downloader
coming Soon
This package is under development, and many exciting features are planned for future releases. Stay tuned for updates and enhancements!
Contributing
We welcome contributions! If you find any issues or have suggestions for improvement, feel free to open an issue or submit a pull request. If you want to contact me, check my GitHub profile.
developer information
𝗡𝗮𝗺𝗲 : 𝗠𝗼𝗵𝗮𝗺𝗺𝗮𝗱 𝗥𝗮𝗵𝗮𝗱
𝗥𝗲𝗹𝗶𝗴𝗶𝗼𝗻 : (𝗜𝘀𝗹𝗮𝗺)
𝗣𝗲𝗿𝗺𝗮𝗻𝗲𝗻𝘁 𝗔𝗱𝗱𝗿𝗲𝘀𝘀 : (𝗗𝗵𝗮𝗸𝗮)
𝗖𝘂𝗿𝗿𝗲𝗻𝘁 𝗔𝗱𝗱𝗿𝗲𝘀𝘀 :𝗦𝗵𝗮𝗵𝗿𝗮𝘀𝘁𝗶 𝗖𝗵𝗮𝗻𝗱𝗽𝘂𝗿
𝗚𝗲𝗻𝗱𝗲𝗿 : (𝗠𝗮𝗹𝗲)
𝗔𝗴𝗲 : (𝟮𝟬)
𝗥𝗲𝗹𝗮𝘁𝗶𝗼𝗻𝘀𝗵𝗶𝗽 : (𝗦𝗶𝗻𝗴𝗹𝗲)
𝗚𝗺𝗮𝗶𝗹 : [email protected]
𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺 : t.me/rabbyhosainRahad
Copyright © 2024 Mohammad Rahad