⬇ Ready-to-Use Code

Download a file, add your API key, and start sending SMS in minutes. No complex setup required.

✅ Just add API Key 📦 6 Languages 🚀 Works Instantly 🔓 Open Source

How It Works

Three simple steps to start sending SMS programmatically

1

📱 Get Your API Key

Open SMS Gateway Master app on Android → Settings → copy your unique API Key.

2

⬇ Download a File

Choose the language you use. Download the ready-to-use file from the list below.

3

🔑 Add API Key & Run

Open the file, paste your API key in the CONFIG section at the top, and run it.

🔑

Where to find your API Key

Open the SMS Gateway Master app on your Android → tap Settings → copy the API Key. Then paste it in the API_KEY = "YOUR_API_KEY_HERE" line at the top of any file below. See full docs →

Download Code Files

All files are self-contained. No extra libraries needed (except where noted).

🐍
Python
Python 3.7+

Send single or bulk SMS. Includes a ready function for list-based sending. Requires pip install requests.

Single SMS Bulk SMS pip install requests
# CONFIGURATION
API_KEY = "YOUR_API_KEY_HERE"
API_URL = "https://us-central1-..."

# Send SMS
send_sms("+40712345678",
         "Hello! 🚀")
🐘
PHP
PHP 7.4+

Drop it on any PHP server. Uses built-in cURL — no Composer needed. Send single or bulk SMS instantly.

Single SMS Bulk SMS No dependencies
// CONFIGURATION
define('API_KEY', 'YOUR_API_KEY_HERE');
define('API_URL', 'https://...');

// Send SMS
sendSms('+40712345678',
        'Hello! 🚀');
🟩
Node.js
Node.js 18+

Uses native fetch (no npm install needed on Node 18+). Async/await, single and bulk sending included.

Single SMS Bulk SMS No dependencies
// CONFIGURATION
const API_KEY = 'YOUR_API_KEY_HERE';
const API_URL = 'https://...';

// Send SMS
await sendSms('+40712345678',
              'Hello! 🚀');
📊
Excel VBA
Excel 2016+ / Microsoft 365

Import into Excel VBA Editor. Send SMS from a spreadsheet list (Column A: phone, Column B: message). No add-ins needed.

Send from Sheet Bulk SMS No add-ins
' CONFIGURATION
Const API_KEY = "YOUR_API_KEY_HERE"

' Send from Sheet
Sub SendSMSFromSheet()
  ' A=Phone | B=Message
  ' C=Status (auto-filled)
End Sub
📋
Google Apps Script
Google Sheets / Workspace

Paste into Google Sheets → Extensions → Apps Script. Adds a custom 📱 SMS Gateway menu. Send SMS from any sheet row. Free.

Google Sheets Custom Menu Free
// CONFIGURATION
var API_KEY = 'YOUR_API_KEY_HERE';

// Adds menu to Sheet:
// 📱 SMS Gateway →
//   Send SMS from Sheet
//   Send Test SMS
🖥️
Bash / cURL
Linux · macOS · Windows WSL

Shell script using standard curl. Works on any Linux/macOS server. Use in cron jobs, CI/CD pipelines, or terminal.

Cron Jobs CLI Args No dependencies
# CONFIGURATION
API_KEY="YOUR_API_KEY_HERE"

# Usage:
./send_sms.sh "+40712345678" \
              "Hello! 🚀"

📊 How to Import VBA into Excel

Import the .bas module in 3 clicks — no macro recording needed

1

Open VBA Editor

In Excel press ALT + F11 to open the Visual Basic Editor.

2

Import File

In the VBA Editor menu: File → Import File… and select the downloaded .bas file.

3

Set API Key & Run

Find API_KEY = "YOUR_API_KEY_HERE" at the top of the module, paste your key, and run SendTestSMS.

4

Send from Sheet

Put phone numbers in column A, messages in column B, then run SendSMSFromSheet. Status appears in column C.

Ready to send your first SMS?

Test the API live in your browser — no code needed. Or download the app and get your API key in minutes.

🚀 Try API Live 📖 Full Documentation