Skip to content

AmitDas4321/Social-WhatsApp-Downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social WhatsApp Downloader Hero Image

Social WhatsApp Downloader

Pinterest Logo    Instagram Logo    Facebook Logo    YouTube Logo

Download videos and images from Pinterest, Instagram, Facebook, and YouTube directly to WhatsApp using a lightweight PHP 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 PHP — lightweight, fast, and easily deployable on any shared or 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.php:

    define('API_BASE', 'https://wadownloader.amitdas.site/api/');
    define('WHATSAPP_INSTANCE_ID', 'YOUR_INSTANCE_ID');
    define('WHATSAPP_ACCESS_TOKEN', 'YOUR_ACCESS_TOKEN');

    Get your WhatsApp API credentials from textsnap.in


🔗 Set Webhook

After uploading your files to a PHP-supported server, set the webhook with the following command:

https://textsnap.in/api/set_webhook?webhook_url=https://yourwebsite.com/index.php&enable=true&instance_id=YOUR_INSTANCE_ID&access_token=YOUR_ACCESS_TOKEN

📝 Usage

  1. Deploy the code to any PHP-supported server.
  2. Configure your config.php file.
  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
├── config.php         # API keys and helper functions
├── index.php          # Webhook logic

📸 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)

🧩 Node.js Version

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

This version runs seamlessly on Vercel, Render, or any Node-supported platform,
and provides 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 PHP-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

Sponsor this project

  •  

Contributors

Languages