A simple Node.js tool to generate direct download links for media from Instagram, Facebook, Twitter (X), Snapchat, TikTok, and Pinterest!
Just provide the post URL, and this package will return the direct media download URL.
This SDK is paid and protected.
To use any downloader function, you must pass a valid authToken.
- 🌐 Visit: https://happykumar.com
- 📧 Email: happykumar.info@gmail.com
All requests without a valid token will be denied.
Install via npm:
npm install github:ImHappyKumar/social-saver-sdkOr, if you're using Yarn:
yarn add github:ImHappyKumar/social-saver-sdkYou can import the entire social-saver-sdk module:
const socialSaver = require("social-saver-sdk");Or destructure specific functions:
const {
instagramDownloader,
facebookDownloader,
twitterDownloader,
snapchatDownloader,
tiktokDownloader,
pinterestDownloader,
} = require("social-saver-sdk");async function fetchInstagramData() {
try {
const result = await socialSaver.instagramDownloader(
"https://www.instagram.com/example-url",
authToken
);
console.log("Fetched Instagram media details:", result);
} catch (error) {
console.error("Error fetching Instagram media details:", error);
}
}
fetchInstagramData();async function fetchFacebookData() {
try {
const result = await socialSaver.facebookDownloader(
"https://www.facebook.com/example-url",
authToken
);
console.log("Fetched Facebook media details:", result);
} catch (error) {
console.error("Error fetching Facebook media details:", error);
}
}
fetchFacebookData();async function fetchTwitterData() {
try {
const result = await socialSaver.twitterDownloader(
"https://x.com/example-url",
authToken
);
console.log("Fetched Twitter media details:", result);
} catch (error) {
console.error("Error fetching Twitter media details:", error);
}
}
fetchTwitterData();async function fetchSnapchatData() {
try {
const result = await socialSaver.snapchatDownloader(
"https://snapchat.com/example-url",
authToken
);
console.log("Fetched Snapchat media details:", result);
} catch (error) {
console.error("Error fetching Snapchat media details:", error);
}
}
fetchSnapchatData();async function fetchTiktokData() {
try {
const result = await socialSaver.tiktokDownloader(
"https://www.tiktok.com/example-url",
authToken
);
console.log("Fetched TikTok media details:", result);
} catch (error) {
console.error("Error fetching TikTok media details:", error);
}
}
fetchTiktokData();async function fetchPinterestData() {
try {
const result = await socialSaver.pinterestDownloader(
"https://in.pinterest.com/example-url",
authToken
);
console.log("Fetched Pinterest media details:", result);
} catch (error) {
console.error("Error fetching Pinterest media details:", error);
}
}
fetchPinterestData();- Snapchat
- TikTok
If you're using Express and want to quickly test the endpoints using the built-in router:
const express = require("express");
const { router } = require("social-saver-sdk");
const app = express();
const PORT = 3000;
// Use the router at /test
app.use("/test", router);
app.listen(PORT, () => {
console.log(`Server running on http://localhost:${PORT}`);
});Contributions are welcome! If you find any issues or want to contribute new features, feel free to fork the repository and create a pull request.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes and commit them (
git commit -am 'Add new feature'). - Push to the branch (
git push origin feature-branch). - Create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.