nayan-videos-downloader
v0.1.1
Published
Fetch Url Downloads From Instagram & Facebook & TikTok & YouTube & Twitter & Google Drive & Pintarest & likee & threads
Downloads
2,186
Maintainers
Readme
Instalation :
> npm i nayan-videos-downloader
Last Update
• pintarest (fix)
• capcut (fix)
• ytdown (fix)
Example (fb & insta)
const { ndown } = require("nayan-videos-downloader")
let URL = await ndown("https://www.facebook.com/100000959749712/posts/pfbid0288xi44nvodK9d7r3wf4LHeM3dtEsVghQXmz5t59axwz7KdLStYyg4qfvTVrAL27Ll/?app=fbl")
console.log(URL)
Output Example
{
"developer": "MOHAMMAD NAYAN",
"devfb": "https://www.facebook.com/profile.php?id=100000959749712",
"devwp": "wa.me/+8801615298449",
"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=HBksFQIYOnBhc3N0aHJvdWdoX2V2ZXJzdG9yZS9HSHZtS2hnWlFBVWtZSjRDQUVZNEZ2dDRiV2M2Ym1kakFBQUYVAALIAQAVAhg6cGFzc3Rocm91Z2hfZXZlcnN0b3JlL0dKbkNHaGpRTEtqVVNZRUdBSWFvZENROWRkWXBidjRHQUFBRhUCAsgBAEsHiBJwcm9ncmVzc2l2ZV9yZWNpcGUBMQ1zdWJzYW1wbGVfZnBzABB2bWFmX2V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c_store_type=1&dl=1",
"shouldRender": false
},
{
"resolution": "360p (SD)",
"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/v/t42.1790-2/404349742_877328270732084_8635412864009964753_n.mp4?_nc_cat=109&ccb=1-7&_nc_sid=55d0d3&efg=eyJybHIiOjMzMSwicmxhIjo4NTMsInZlbmNvZGVfdGFnIjoic3ZlX3NkIn0%3D&_nc_ohc=CiYYCEuMrVgAX-xk9HO&rl=331&vabr=184&_nc_ht=video-ber1-1.xx&oh=00_AfCl3XhkvJuI5ykViWS98MQ8TUp0HYuRfewCFQ81K9j80Q&oe=6586092D&dl=1",
"shouldRender": false
},
{
"resolution": "480p",
"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": "/render.php?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ2aWRlb191cmwiOiJodHRwczovL3ZpZGVvLWJlcjEtMS54eC5mYmNkbi5uZXQvdi90MzkuMjU0NDctMi80MDU0NjQ2OTlfNzM3MDg1NzExNzk0MjAxXzQyMDg0NTI3NDMxNzcwNTgzNzRfbi5tcDQ_X25jX2NhdD0xMDAmY2NiPTEtNyZfbmNfc2lkPTlhNWQ1MCZlZmc9ZXlKMlpXNWpiMlJsWDNSaFp5STZJbVJoYzJoZloyVnVNbWgzWW1GemFXTmZhSEV5WDJaeVlXZGZNbDkyYVdSbGJ5SjkmX25jX29oYz10ZTc3SElZVWNJc0FYXzV1eUJKJl9uY19odD12aWRlby1iZXIxLTEueHgmb2g9MDBfQWZCSnUwODBTT1pEM3NDUmYtZHBJRVpyQUc1VExoZjhqdE9GVngzSUtpVVRRZyZvZT02NTg2NkQ5QSIsImF1ZGlvX3VybCI6Imh0dHBzOi8vdmlkZW8tYmVyMS0xLnh4LmZiY2RuLm5ldC92L3Q1OC4xNjgwNy0yLzk5NzI3ODY2XzE0NDYyOTg1NTU5MjEzMjNfMTA1MDczODMwMzg0NTUwMDEwMV9uLm1wND9fbmNfY2F0PTEwMSZjY2I9MS03Jl9uY19zaWQ9OWE1ZDUwJmVmZz1leUoyWlc1amIyUmxYM1JoWnlJNkltUmhjMmhmYkc1ZmFHVmhZV05mTkRoZllYVmthVzhpZlElM0QlM0QmX25jX29oYz1YeFkwWVh6QU0xRUFYLUhzZWNyJl9uY19odD12aWRlby1iZXIxLTEueHgmb2g9MDBfQWZCVXk5U1VfRFhUYXBfMVJtYjdPUkhVTmhpSHJxNy12SlNIWWJuSi0tRFl1USZvZT02NTg1QUQ1OCIsImlkIjpudWxsLCJmaWxlbmFtZSI6IlNuYXBTYXZlX0FwcF9fNDgwcC5tcDQifQ.COR5xzqjXhLneqsiLOt8k6M2WJ4JSu3PyRQR-BIneJU",
"shouldRender": true
},
{
"resolution": "360p",
"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": "/render.php?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ2aWRlb191cmwiOiJodHRwczovL3ZpZGVvLWJlcjEtMS54eC5mYmNkbi5uZXQvdi90MzkuMjU0NDctMi80MDU1NDY3MjNfMTI3MjM2ODgwMzQzNzE0NV81NzM2NTAyMzk0NzIxOTIzNDUyX24ubXA0P19uY19jYXQ9MTAyJmNjYj0xLTcmX25jX3NpZD05YTVkNTAmZWZnPWV5SjJaVzVqYjJSbFgzUmhaeUk2SW1SaGMyaGZaMlZ1TW1oM1ltRnphV05mYUhFeFgyWnlZV2RmTWw5MmFXUmxieUo5Jl9uY19vaGM9UTE4a2ZFbGVSdllBWDhzSFd3OSZfbmNfaHQ9dmlkZW8tYmVyMS0xLnh4Jm9oPTAwX0FmRFc1OVBQMEY3TVhpUW8xdlZiQUhidlJCNWpjQUtsa0hXRlpXazhkOHd0V2cmb2U9NjU4NUNFRDIiLCJhdWRpb191cmwiOiJodHRwczovL3ZpZGVvLWJlcjEtMS54eC5mYmNkbi5uZXQvdi90NTguMTY4MDctMi85OTcyNzg2Nl8xNDQ2Mjk4NTU1OTIxMzIzXzEwNTA3MzgzMDM4NDU1MDAxMDFfbi5tcDQ_X25jX2NhdD0xMDEmY2NiPTEtNyZfbmNfc2lkPTlhNWQ1MCZlZmc9ZXlKMlpXNWpiMlJsWDNSaFp5STZJbVJoYzJoZmJHNWZhR1ZoWVdOZk5EaGZZWFZrYVc4aWZRJTNEJTNEJl9uY19vaGM9WHhZMFlYekFNMUVBWC1Ic2VjciZfbmNfaHQ9dmlkZW8tYmVyMS0xLnh4Jm9oPTAwX0FmQlV5OVNVX0RYVGFwXzFSbWI3T1JIVU5oaUhycTctdkpTSFlibkotLURZdVEmb2U9NjU4NUFENTgiLCJpZCI6bnVsbCwiZmlsZW5hbWUiOiJTbmFwU2F2ZV9BcHBfXzM2MHAubXA0In0.mTZkHQCoKkRJ88VxCNydIHUwZ5bhrjr58ExH-_s__lg",
"shouldRender": true
}
]
}
Instagram Usage
const {instagram} = require("nayan-videos-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("nayan-videos-downloader")
let URL = await tikdown("https://vt.tiktok.com/ZSNvs6h6o/")
console.log(URL)
Output Example (tikTok)
{
"developer": "MOHAMMAD NAYAN",
"devfb": "https://www.facebook.com/profile.php?id=100000959749712",
"devwp": "wa.me/+8801615298449",
"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"
},
"view": 59711,
"comment": 628,
"play": 345065,
"share": 1728,
"download": 7666,
"duration": 19,
"title": "Kokhono asuk💐🥹 #rowdy__baby212 ",
"video": "https://v16m-default.akamaized.net/ad3c167bb8792b3693ecf372632b1ea2/6599b519/video/tos/alisg/tos-alisg-pve-0037c001/okyBYBAQ4wiBNE9UEPALXHEjZCIvGYWwL1iUb/?a=0&ch=0&cr=0&dr=0&lr=all&cd=0%7C0%7C0%7C0&cv=1&br=936&bt=468&bti=OUBzOTg7QGo6OjZAL3AjLTAzYCMxNDNg&cs=0&ds=6&ft=XE5bCqT0m7jPD12-NFzR3wUTV3yKMeF~O5&mime_type=video_mp4&qs=4&rc=ZzQzaDU3NWQzN2hlNmlkaUBpMzYzb3c5cnFncDMzODczNEAuLTI0L2A0XjUxYjVjL2A2YSNwYTNhMmRrYC5gLS1kMS1zcw%3D%3D&l=202401061416056062C3D543FE05F58BCB&btag=e00088000",
"audio": "https://sf16-ies-music-sg.tiktokcdn.com/obj/tiktok-obj/7314645119033936642.mp3"
}
}
Example (YouTube)
const { ytdown } = require("nayan-videos-downloader")
let URL = await ytdown("https://youtu.be/aRSuyrZFu_Q?si=bsfzgeeGmRpsHqnF")
console.log(URL)
Example (Twitter)
const { twitterdown } = require("nayan-videos-downloader")
let URL = await twitterdown("https://twitter.com/TeamAbhiSha/status/1743351410761019794?t=vms8wxcU0mQuhVxwGCHjFw&s=19")
console.log(URL)
Output Example (Twitter)
{
"developer": "MOHAMMAD NAYAN",
"devfb": "https://www.facebook.com/profile.php?id=100000959749712",
"devwp": "wa.me/+8801615298449",
"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 Fbdown2
const { fbdown2 } = require("nayan-videos-downloader");
const key = "Nayan" //dont change key
const link = "url" //past video link
fbdown2(link, key).then(data => {
console.log(data)
});
Output Example (fbdown2)
{
"developer": "MOHAMMAD NAYAN",
"devfb": "https://www.facebook.com/profile.php?id=100000959749712",
"devwp": "wa.me/+8801615298449",
"status": true,
"media": {
title: video title,
hd: Hd video link,
sd: normal video link
}
}
Usage GDLink
const {GDLink} = require("nayan-videos-downloader");
const url = 'url' // Public Google Drive Url
GDLink(url).then(data => {
console.log(data)
});
Usage Pintarest
const {pintarest} = require("nayan-videos-downloader");
const url = 'url' // pintarest post url
pintarest(url).then(data => {
console.log(data)
});
Usage CapCut
const { capcut } = require("nayan-videos-downloader");
const url = "link" // capcut link
capcut(url).then(data => {
console.log(data)
});
Usage Likee
const { likee} = require("nayan-videos-downloader");
const url = "link" // past url
likee(url).then(data => {
console.log(data)
});
Usage Threads
const { threads } = require("nayan-videos-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("nayan-videos-downloader");
const url = 'url' // past url
alldown(url).then(data => {
console.log(data)
});
Output Example (alldown)
{
"developer": "MOHAMMAD NAYAN",
"devfb": "https://www.facebook.com/profile.php?id=100000959749712",
"devwp": "wa.me/+8801615298449",
"status": true,
"media": {
"title": "video title",
"thumbnail": "thumbnail link",
"low": "normal video link",
"high": "hd video link"
}
}