Skip to content

Download social media videos via WhatsApp using a lightweight Node.js-based API. Just send any Pinterest, Instagram, Facebook, or YouTube link to your WhatsApp bot and get the video instantly.

License

Notifications You must be signed in to change notification settings

AmitDas4321/Social-WhatsApp-Downloader-Node-JS-Version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social WhatsApp Downloader Hero Image

Social WhatsApp Downloader (Node.js)

Pinterest Logo    Instagram Logo    Facebook Logo    YouTube Logo

Download videos and images from Pinterest, Instagram, Facebook, and YouTube directly to WhatsApp using a lightweight Node.js API

FeaturesConfigurationSet WebhookUsageFile StructureExampleTo DoAuthorLicense


📌 Overview

Social WhatsApp Downloader allows you to send links from multiple social media platforms — Pinterest, Instagram, Facebook, and YouTube — to your WhatsApp number and instantly receive the media file back (videos or images). The system automatically detects valid URLs, downloads the media, and sends it back via WhatsApp using a simple webhook-based setup.

Built with Node.js — lightweight, fast, and deployable on any platform such as Vercel, Render, or your VPS server.


🚀 Features

  • ⚡️ Download from Pinterest, Instagram, Facebook, and YouTube
  • 📱 Supports Reels, Shorts, and regular videos
  • 🔗 Instant WhatsApp automation via webhook (no polling)
  • 🪶 Zero database dependency
  • 🧩 Regex-based URL detection for multiple platforms
  • 📝 Debug logging system included

🛠️ Configuration

  1. Edit config.js:

    // config.js
    module.exports = {
      API_BASE: 'https://wadownloader.amitdas.site/api/',
      WHATSAPP_INSTANCE_ID: 'YOUR_INSTANCE_ID',
      WHATSAPP_ACCESS_TOKEN: 'YOUR_ACCESS_TOKEN'
    };

    Get your WhatsApp API credentials from textsnap.in


🔗 Set Webhook

AAfter deploying your Node.js project to a hosting platform (for example, Vercel), set the webhook using the following API endpoint:

https://textsnap.in/api/set_webhook?webhook_url=https://your-vercel-project.vercel.app&enable=true&instance_id=YOUR_INSTANCE_ID&access_token=YOUR_ACCESS_TOKEN

📝 Usage

  1. Deploy the code to any Node.js-supported platform (e.g., Vercel).
  2. Configure your config.js file with API details.
  3. Set the webhook URL using the endpoint above.
  4. Send any supported link (Pinterest, Instagram, Facebook, or YouTube) to your WhatsApp number.
  5. Receive the media directly in your WhatsApp chat! 🎬✅

📂 File Structure

📁 project-root
├── api/
│   └── index.js          # Main Node.js webhook logic
├── config.js             # Configuration file (API Base + WhatsApp credentials)
├── package.json          # Node.js project setup
└── vercel.json           # Deployment configuration for Vercel

📸 Example

Send a message on WhatsApp:

https://youtube.com/shorts/c_07yu5BekI?si=4ukjWk8rtJmwXmpJ

Or:

https://in.pinterest.com/pin/996632592567664852/
https://www.instagram.com/reel/XXXXXXXX/
https://www.facebook.com/watch/?v=XXXXXXXX

And receive the downloadable video automatically within seconds!


📌 To Do

  • Add custom caption formatting for WhatsApp replies
  • Add Telegram bot integration
  • Add web-based preview interface
  • Add multi-quality video support (SD/HD)

🧩 PHP Version

If you prefer using PHP, check out the PHP version of this project here: 👉 Social WhatsApp Downloader (PHP)

This version runs smoothly on any PHP-supported server — including cPanel, Hostinger, or VPS hosting — and offers the same WhatsApp automation features for downloading from Pinterest, Instagram, Facebook, and YouTube.


👨‍💻 Author

Amit Das
Amit Das

📄 License

This project is licensed under the MIT License.

About

Download social media videos via WhatsApp using a lightweight Node.js-based API. Just send any Pinterest, Instagram, Facebook, or YouTube link to your WhatsApp bot and get the video instantly.

Topics

Resources

License

Stars

Watchers

Forks