alif-media-downloader
v2.2.7
Published
Fetch URL downloads from Instagram, Facebook, TikTok, YouTube, Twitter, Google Drive, Pinterest, Likee, Threads, and more.
Downloads
1,254
Maintainers
Readme
Instalation :
> npm i alif-media-downloader
Last Update
• pintarest (fix)
• capcut (fix)
Example (install)
const alif = require('alif-media-downloader');
alif.alldown('url')
.then(data => {
console.log(data);
})
.catch(error => {
console.error('Error downloading:', error);
});
Output Example
{
"developer": "𝗔𝗟𝗜𝗙 𝗛𝗢𝗦𝗦𝗢𝗡",
"devfb": "https://www.facebook.com/100075421394195",
"devwp": "wa.me/+8801615623399",
"status": true,
"data": [
{
"resolution": "720p (HD)",
"thumbnail": "https://scontent-ber1-1.xx.fbcdn.net/v/t15.5256-10/400486200_1343033686353383_5174403316165836536_n.jpg?_nc_cat=108&ccb=1-7&_nc_sid=dd673f&_nc_ohc=2xRWTn71BMQAX8u2-qw&_nc_ht=scontent-ber1-1.xx&oh=00_AfCzw-5oUCmwmFGGT3_tmPTy0KTuYtmMD4--Ed1gZbXubg&oe=6586FB4E",
"url": "https://video-ber1-1.xx.fbcdn.net/o1/v/t2/f1/m69/GHvmKhgZQAUkYJ4CAEY4Fvt4bWc6bmdjAAAF.mp4?efg=eyJ2ZW5jb2RlX3RhZyI6Im9lcF9oZCJ9&_nc_ht=video-ber1-1.xx.fbcdn.net&_nc_cat=103&strext=1&vs=44ce93d67fb1cb71&_nc_vs=HBksFQIYOnBhc3N0aHJvdWdoX2V2ZXJzdG9yZS9HSHZtS2hnWlFBVWtZSjRDQUVZNEZ2dDRiV2M2Ym1kakFBQUYVAALIAQAVAhg6cGFzc3Rocm91Z2hfZXZlcnN0b3JlL0dKbkNHaGpRTEtqVVNZRUdBSWFvZENROWRkWXBidjRHQUFBRhUCAsgBAEsHiBJwcm9ncmVzc2l2ZV9yZWNpcGUBMQ1zdWJzYW1wbGVfZnBzABB2bWFmX2VuYWJsZV9uc3ViACBtZWFzdXJlX29yaWdpbmFsX3Jlc29sdXRpb25fc3NpbQAoY29tcHV0ZV9zc2ltX29ubHlfYXRfb3JpZ2luYWxfcmVzb2x1dGlvbgAddXNlX2xhbmN6b3NfZm9yX3ZxbV91cHNjYWxpbmcAEWRpc2FibGVfcG9zdF9wdnFzABUAJQAcjBdAAAAAAAAAABERAAAAJoybioPwgYsDFQIoAkMzGAt2dHNfcHJldmlldxwXQG7qp%2B%2Bdsi0YIWRhc2hfZ2VuMmh3YmFzaWNfaHEyX2ZyYWdfMl92aWRlbxIAGBh2aWRlb3MudnRzLmNhbGxiYWNrLnByb2Q4ElZJREVPX1ZJRVdfUkVRVUVTVBsKiBVvZW1fdGFyZ2V0X2VuY29kZV90YWcGb2VwX2hkE29lbV9yZXF1ZXN0X3RpbWVfbXMBMAxvZW1fY2ZnX3J1bGUHdW5tdXRlZBNvZW1fcm9pX3JlYWNoX2NvdW50AzU2NRFvZW1faXNfZXhwZXJpbWVudAAMb2VtX3ZpZGVvX2lkDzMyODYwNjk2OTkyODgzMRJvZW1fdmlkZW9fYXNzZXRfaWQPMzE1MjM2NDY3OTgzOTE3FW9lbV92aWRlb19yZXNvdXJjZV9pZA84Njg2NDY0MDE0MjcxNDIcb2VtX3NvdXJjZV92aWRlb19lbmNvZGluZ19pZBAzNzAyMTY3NDYzNDM4MzU1DnZ0c19yZXF1ZXN0X2lkACUCHAAlxAEbB4gBcwQ4OTY0AmNkCjIwMjMtMTEtMjQDcmNiAzUwMANhcHAURmFjZWJvb2sgZm9yIEFuZHJvaWQCY3QZQ09OVEFJTkVEX1BPU1RfQVRUQUNITUVOVBNvcmlnaW5hbF9kdXJhdGlvbl9zBzI0Ny4zODYCdHMVcHJvZ3Jlc3NpdmVfZW5jb2RpbmdzAA%3D%3D&ccb=9-4&oh=00_AfCZS1NarEnG6CaVCjJvCdaVWCRMpf381WpwqUubSjNM_Q&oe=65832C04&_nc_sid=1d576d&_nc_rid=544475056770190&_nc_store_type=1&dl=1",
"shouldRender": false
}
]
}
Instagram Usage
const {instagram} = require("alif-media-downloader");
const link = "https://www.instagram.com/p/DAxzjkAyWOm/?igsh=MTZ5eThrMXpteTFpOA==" //past video link
instagram(link).then(data => {
console.log(data)
});
Example (TikTok)
const { tikdown } = require("alif-media-downloader")
let URL = await tikdown("https://vt.tiktok.com/ZSNvs6h6o/")
console.log(URL)
Output Example (tikTok)
{
"developer": "𝗔𝗟𝗜𝗙 𝗛𝗢𝗦𝗦𝗢𝗡",
"devfb": "https://www.facebook.com/100075421394195",
"devwp": "wa.me/+8801615623399",
"status": true,
"data": {
"author": {
"id": "7021670496278447110",
"unique_id": "rowdy__baby_212",
"nickname": "Rasel_official_97⚡",
"avatar": "https://p16-sign-sg.tiktokcdn.com/tos-alisg-avt-0068/d673e8357d05f3599741c7c974ec3e9a~c5_300x300.jpeg?lk3s=45126217&x-expires=1704636000&x-signature=z2SNWwaql50uUONx2NIzt8Pn8GY%3D"
}
}
Example (YouTube)
const { ytdown } = require("alif-media-downloader")
let URL = await ytdown("https://youtu.be/aRSuyrZFu_Q?si=bsfzgeeGmRpsHqnF")
console.log(URL)
Example (Twitter)
const { twitterdown } = require("alif-media-downloader")
let URL = await twitterdown("https://twitter.com/TeamAbhiSha/status/1743351410761019794?t=vms8wxcU0mQuhVxwGCHjFw&s=19")
console.log(URL)
Output Example (Twitter)
{
"developer": "𝗔𝗟𝗜𝗙 𝗛𝗢𝗦𝗦𝗢𝗡",
"devfb": "https://www.facebook.com/100075421394195",
"devwp": "wa.me/+8801615623399",
"status": true,
"data": {
"HD": "https://video.twimg.com/ext_tw_video/1743351351898181632/pu/vid/avc1/810x720/gKWI2KEyLdRMQBFa.mp4?tag=12",
"SD": "https://video.twimg.com/ext_tw_video/1743351351898181632/pu/vid/avc1/404x360/dtDrE8AqyxXhoRhO.mp4?tag=12"
}
}
Example Fbdown
const { fbdown } = require("alif-media-downloader");
const request = require('request')
const key = "Alif" //dont change key
const cookie = "cookie" //past your fb cookie here
const link = "url" //past video link
fbdown(link, cookie, key).then(data => {
console.log(data)
});
Output Example (fbdown)
{
"developer": "𝗔𝗟𝗜𝗙 𝗛𝗢𝗦𝗦𝗢𝗡",
"devfb": "https://www.facebook.com/100075421394195",
"devwp": "wa.me/+8801615623399",
"url": "https://www.facebook.com/saroj.dwivedi.7121/videos/691539259851175/?idorvanity=213813760197847",
"thumbnail": "https://scontent.fkul8-4.fna.fbcdn.net/v/t15.5256-10/427275886_286050634275782_6523162309266122490_n.jpg?stp=dst-jpg_p960x960&_nc_cat=104&ccb=1-7&_nc_sid=dd673f&_nc_ohc=8gfhuR00MokAX9K7Xoa&_nc_ht=scontent.fkul8-4.fna&oh=00_AfA0TUr_aw2q146jhqW3Fs-Yd5z0C3O75Hthf7qdLbXKmg&oe=65DB995F",
"status": true,
"media": {
"title": "The real master.\\ud83d\\ude06\\ud83d\\ude06",
"hd": "https://video.fkul8-2.fna.fbcdn.net/o1/v/t2/f1/m69/GAflixlLP9JH0IMCAFfy-_verBcfbmdjAAAF.mp4?efg=eyJ2ZW5jb2RlX3RhZyI6Im9lcF9oZCJ9&_nc_ht=video.fkul8-2.fna.fbcdn.net&_nc_cat=108&strext=1&vs=2b8b34f9bdb1e75e&_nc_vs=HBksFQIYOnBhc3N0aHJvdWdoX2V2ZXJzdG9yZS9HQWZsaXhsTFA5SkgwSU1DQUZmeS1fdmVyQmNmYm1kakFBQUYVAALIAQAVAhg6cGFzc3Rocm91Z2hfZXZlcnN0b3JlL0dHWGZneG1QTTZMaXltTUJBSFh5aVVpaEdyRkxidjRHQUFBRhUCAsgBAEsHiBJwcm9ncmVzc2l2ZV9yZWNpcGUBMQ1zdWJzYW1wbGVfZnBzABB2bWFmX2VuYWJsZV9uc3ViACBtZWFzdXJlX29yaWdpbmFsX3Jlc29sdXRpb25fc3NpbQAoY29tcHV0ZV9zc2ltX29ubHlfYXRfb3JpZ2luYWxfcmVzb2x1dGlvbgAddXNlX2xhbmN6b3NfZm9yX3ZxbV91cHNjYWxpbmcAEWRpc2FibGVfcG9zdF9wdnFzABUAJQAcjBdAAAAAAAAAABERAAAAJoTxuc7t1sYBFQIoAkMzGAt2dHNfcHJldmlldxwXQDONDlYEGJMYIWRhc2hfZ2VuMmh3YmFzaWNfaHEyX2ZyYWdfMl92aWRlbxIAGBh2aWRlb3MudnRzLmNhbGxiYWNrLnByb2Q4ElZJREVPX1ZJRVdfUkVRVUVTVBsKiBVvZW1fdGFyZ2V0X2VuY29kZV90YWcGb2VwX2hkE29lbV9yZXF1ZXN0X3RpbWVfbXMBMAxvZW1fY2ZnX3J1bGUHdW5tdXRlZBNvZW1fcm9pX3JlYWNoX2NvdW50BzE4MDYyOTQRb2VtX2lzX2V4cGVyaW1lbnQADG9lbV92aWRlb19pZA82OTE1MzkyNTk4NTExNzUSb2VtX3ZpZGVvX2Fzc2V0X2lkDzI1MjE4MzU2NDU5ODgzNhVvZW1fdmlkZW9fcmVzb3VyY2VfaWQPNDM2ODk4Nzg1MzQ0NTc4HG9lbV9zb3VyY2VfdmlkZW9fZW5jb2RpbmdfaWQQMTg3MjY2MTQyNjUwNjYyNQ52dHNfcmVxdWVzdF9pZAAlAhwAJb4BGweIAXMEMzU4NQJjZAoyMDI0LTAyLTE3A3JjYgcxODA2MjAwA2FwcBRGYWNlYm9vayBmb3IgQW5kcm9pZAJjdApHUk9VUF9QT1NUE29yaWdpbmFsX2R1cmF0aW9uX3MGMTkuNTc1AnRzFXByb2dyZXNzaXZlX2VuY29kaW5ncwA%3D&ccb=9-4&oh=00_AfDc2eioFzHbbvrcmY0F65aiNa-wOEJkjs1zDxMJlvCgSw&oe=65D866B1&_nc_sid=1d576d&_nc_rid=485391820915246&_nc_store_type=1",
"sd": "https://video.fkul8-1.fna.fbcdn.net/v/t42.1790-2/428523452_7328222917198762_1280577179298892870_n.mp4?_nc_cat=101&ccb=1-7&_nc_sid=55d0d3&efg=eyJybHIiOjQ1MywicmxhIjo1MTIsInZlbmNvZGVfdGFnIjoic3ZlX3NkIn0%3D&_nc_ohc=9ONnrxW_k8gAX-iSMM2&rl=453&vabr=252&_nc_ht=video.fkul8-1.fna&oh=00_AfBkjxUy6GrISzoJfBZEu2RwLa-CLwv5q2tc2Iyc2SjBPw&oe=65DC3B6C"
},
"audio": "https://video.fkul8-2.fna.fbcdn.net/v/t39.25447-2/428621206_935765774852656_1505609703629717781_n.mp4?_nc_cat=110&ccb=1-7&_nc_sid=9a5d50&efg=eyJ2ZW5jb2RlX3RhZyI6ImRhc2hfYXVkaW9fYWFjcF80OF9mbm9ybTE0X2ZyYWdfMl9hdWRpbyJ9&_nc_ohc=ZoKNtZHq6VUAX_r1QSE&_nc_ht=video.fkul8-2.fna&oh=00_AfAQ7FB2SUPfXGO-2yfIYWhQme4WTkD--g2mZ2anaVmS3A&oe=65DC7873"
}
Example Fbdown2
const { fbdown2 } = require("alif-media-downloader");
const request = require('request')
const key = "Alif" //dont change key
const link = "url" //past video link
fbdown2(link, key).then(data => {
console.log(data)
});
Output Example (fbdown2)
{
"developer": "𝗔𝗟𝗜𝗙 𝗛𝗢𝗦𝗦𝗢𝗡",
"devfb": "https://www.facebook.com/100075421394195",
"devwp": "wa.me/+8801615623399",
"status": true,
"media": {
title: video title,
hd: Hd video link,
sd: normal video link
}
}
Usage GDLink
const {GDLink} = require("alif-media-downloader");
const url = 'url' // Public Google Drive Url
GDLink(url).then(data => {
console.log(data)
});
Usage Pintarest
const {pintarest} = require("alif-media-downloader");
const url = 'url' // pintarest post url
pintarest(url).then(data => {
console.log(data)
});
Usage CapCut
const { capcut } = require("alif-media-downloader");
const url = "link" // capcut link
capcut(url).then(data => {
console.log(data)
});
Usage Likee
const { likee} = require("alif-media-downloader");
const url = "link" // past url
likee(url).then(data => {
console.log(data)
});
Usage Threads
const { threads } = require("alif-media-downloader");
const url = "link" // past url
threads(url).then(data => {
console.log(data)
});
Usage All Media Down
support url: facebook, tiktok, twitter, instagram, youtube, pinterest, gdrive, capcut, likee, threads
note: Let me know if any of the platforms you use are missing
const {alldown} = require("alif-media-downloader");
const url = 'url' // past url
alldown(url).then(data => {
console.log(data)
});
Output Example (alldown)
{
"developer": "𝗔𝗟𝗜𝗙 𝗛𝗢𝗦𝗦𝗢𝗡",
"devfb": "https://www.facebook.com/100075421394195",
"devwp": "wa.me/+8801615623399",
"status": true,
"media": {
"title": "video title",
"low": "normal video link",
"high": "hd video link"
}
}