SMS API for Morocco: bulk SMS to +212 numbers
Morocco
Calling code +212
- Per SMS segment
- $0.03407
- Messages for $100
- 2,935
- Local language
- Arabic, Berber and French
- Encoding
- Unicode (UCS-2)
What a bulk SMS send to Morocco costs
| Messages | 1 segment | 2 segments |
|---|---|---|
| 1 | $0.03407 | $0.06814 |
| 1,000 | $34.07 | $68.14 |
| 10,000 | $340.70 | $681.40 |
| 100,000 | $3,407.00 | $6,814.00 |
Number format in Morocco
Mobile numbers in Morocco have 9 digits after +212. Locally they are written with a leading 0 (06 50 12 34 56); in the API that 0 is dropped, so the same number goes in the to field as +212 6 50 12 34 56.
Alphabet and segments
Text in Arabic is always Unicode, so a message to Morocco written in Arabic carries 70 characters in one segment and 67 in each part of a longer one. Codes and alerts written in English or plain Latin letters fit 160 characters, which halves the cost of a long notice.
Time zone and timing
Morocco keeps UTC+1 all year with no clock change, so 09:00 in Casablanca is always 08:00 UTC. send_at takes UTC or any ISO 8601 offset, and the console scheduler converts from your own time zone.
Send to Morocco with one request
The answer comes back at once with the message id, the country the number was matched to (MA) and the price. A delivered or failed event follows on your webhook, and a failed message is refunded.
For a list, send the same text to up to 10,000 numbers with POST /v1/batches, or a personal text per number in messages.
curl https://bulksmsapi.cc/v1/messages \
-H "Authorization: Bearer $BULKSMSAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"to": "+212650123456", "text": "Your Northwind code is 482913. It expires in 10 minutes."}'const res = await fetch("https://bulksmsapi.cc/v1/messages", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.BULKSMSAPI_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ to: "+212650123456", text: "Your Northwind code is 482913. It expires in 10 minutes." }),
});
console.log(await res.json()); // price: "0.03407", country: "MA"import json, os, urllib.request
req = urllib.request.Request(
"https://bulksmsapi.cc/v1/messages",
data=json.dumps({"to": "+212650123456", "text": "Your Northwind code is 482913. It expires in 10 minutes."}).encode(),
headers={"Authorization": "Bearer " + os.environ["BULKSMSAPI_KEY"], "Content-Type": "application/json", "User-Agent": "northwind-app/1.0"},
method="POST",
)
with urllib.request.urlopen(req) as res:
print(json.load(res)["price"]) # "0.03407"What developers send to Morocco
Payment confirmations
Online stores in Casablanca send SMS receipts to customers after successful purchases.
Delivery notifications
Logistics companies in Marrakech update customers about parcel delivery statuses.
Appointment reminders
Clinics in Fes send SMS reminders to patients before their scheduled visits.
Tourism updates
Hotels in Agadir notify guests about check-in times and special offers via SMS.
More countries in North Africa
SMS to Morocco: questions
More answers on accounts, payments and the API are in the FAQ.
How much does it cost to send bulk SMS to Morocco?
How many SMS to Morocco does a $100 top-up send?
How do I write Morocco numbers for the API?
Should messages be in Arabic or French?
Are there peak times for SMS traffic?
Start sending to Morocco
Create an account, top up from $40 and send to Morocco at $0.03407 per segment, from the console or with one API call.