SMS API for Latvia: bulk SMS to +371 numbers
Latvia
Calling code +371
- Per SMS segment
- $0.00987
- Messages for $100
- 10,131
- Local language
- Latvian
- Encoding
- GSM-7 or Unicode
What a bulk SMS send to Latvia costs
| Messages | 1 segment | 2 segments |
|---|---|---|
| 1 | $0.00987 | $0.01974 |
| 1,000 | $9.87 | $19.74 |
| 10,000 | $98.70 | $197.40 |
| 100,000 | $987.00 | $1,974.00 |
Number format in Latvia
Mobile numbers in Latvia have 8 digits after +371 and no trunk prefix, so the local form 21 234 567 becomes +371 21 234 567 in the to field.
Alphabet and segments
Texts in Latvian fit 160 GSM-7 characters per segment until they use ā, č, ē, ģ, ī, ķ, ļ, ņ, š, ū and ž: those letters are outside GSM-7 and turn the message into Unicode at 70 characters per segment (67 per part). For short alerts, write them without those letters to keep one segment; for longer texts, the console names each letter that changed the encoding.
Time zone and timing
Latvia changes its clocks: Riga is on UTC+2 in January and UTC+3 in July. 09:00 in Riga is 07:00 UTC in January and an hour earlier in UTC while summer time runs, so give send_at with the local offset (for example +02:00 in winter) and the API does the conversion.
Send to Latvia with one request
The answer comes back at once with the message id, the country the number was matched to (LV) 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": "+37121234567", "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: "+37121234567", text: "Your Northwind code is 482913. It expires in 10 minutes." }),
});
console.log(await res.json()); // price: "0.00987", country: "LV"import json, os, urllib.request
req = urllib.request.Request(
"https://bulksmsapi.cc/v1/messages",
data=json.dumps({"to": "+37121234567", "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.00987"What developers send to Latvia
Payment confirmations
Online stores in Riga send SMS receipts to customers after successful purchases.
Delivery notifications
Logistics companies in Daugavpils update customers about parcel delivery statuses.
Appointment reminders
Clinics in Liepāja send SMS reminders to patients before their scheduled visits.
Event updates
Festivals in Jurmala notify attendees about schedule changes via SMS.
More countries in Nordic and Baltic
SMS to Latvia: questions
More answers on accounts, payments and the API are in the FAQ.
How much does it cost to send bulk SMS to Latvia?
How many SMS to Latvia does a $100 top-up send?
How do I write Latvia numbers for the API?
Should messages be in Latvian or Russian?
Are there seasonal peaks in SMS traffic?
Start sending to Latvia
Create an account, top up from $40 and send to Latvia at $0.00987 per segment, from the console or with one API call.