shadowx-fbdl
v1.1.0
Published
Powerful Facebook video downloader - Supports FB, FB Watch, Reels, Shares using ShadowX API
Maintainers
Readme
shadowx-fbdl
🤖DEV : Mueid Mursalin Rifat
🚀 Simple Facebook video downloader - Supports FB, FB Watch, Reels & Shares
📦 Install
npm install shadowx-fbdl🚀 Quick Usage
const ShadowXFB = require('shadowx-fbdl');
const fbdl = new ShadowXFB();
// Download Facebook video
fbdl.download('https://fb.watch/abc123/')
.then(result => {
console.log('Title:', result.video.title);
console.log('Download URL:', result.download.url);
})
.catch(error => console.log(error.message));📋 Examples
Get video info only
const info = await fbdl.getInfo('https://fb.watch/abc123/');Get direct download URL
const url = await fbdl.getDownloadUrl('https://fb.watch/abc123/');Check if URL is valid
if (fbdl.isValidUrl('https://fb.watch/abc123/')) {
console.log('✅ Valid Facebook URL');
}🔗 Supported URLs
· https://www.facebook.com/watch?v=ID · https://fb.watch/ID/ · https://www.facebook.com/reel/ID · https://www.facebook.com/share/v/ID/
📤 Response Example
{
video: {
title: "Video Title",
duration: "2:30",
uploader: "Page Name",
views: "1.2M"
},
download: {
quality: "HD",
size: "5.2 MB",
url: "https://.../video.mp4"
}
}⚙️ Options
const fbdl = new ShadowXFB({
timeout: 30000, // Timeout in ms
apiKey: 'shadowx' // API key
});📝 License
MIT ©
