HerzaJ's picture
Upload 36 files
7e9ddb1 verified
raw
history blame contribute delete
787 Bytes
const { instagram } = require('notmebotz-tools');
const handler = async (req, res) => {
try {
const { url } = req.query;
if (!url) {
return res.status(400).json({
success: false,
error: 'Missing required parameter: url'
});
}
const result = await instagram(url);
res.json({
author: "Herza",
success: true,
data: result.data
});
} catch (error) {
res.status(500).json({
success: false,
error: error.message
});
}
};
module.exports = {
name: 'Instagram DL',
description: 'Download Instagram Video Without WM',
type: 'GET',
routes: ['api/download/instagram'],
tags: ['downloader', 'tools', 'misc'],
parameters: ['url', 'key'],
enabled: true,
main: ['Downloader'],
handler
}