Phone numbers · CR
Costa Rica phone number format
Costa Rica numbers use the country code +506. A mobile number looks like 8312 3456 at home and +50683123456 in international E.164 format.
| Type | Example (national) | International | E.164 | Digits |
|---|---|---|---|---|
| Mobile | 8312 3456 | +506 8312 3456 | +50683123456 | 8 |
| Landline | 2212 3456 | +506 2212 3456 | +50622123456 | 8 |
| Toll-free | 800-123-4567 | +506 800-123-4567 | +5068001234567 | 10 |
| VoIP | 4000 1234 | +506 4000 1234 | +50640001234 | 8 |
| Premium-rate | 900-123-4567 | +506 900-123-4567 | +5069001234567 | 10 |
- Country calling code
- +506
- National (trunk) prefix
- None
- International call prefix
- 00
- Separate VoIP range
- Yes
- Time zones
- America/Costa_Rica
Validate in code
Check a Costa Rica number.
Send the number as typed plus country: "CR". You get it back in E.164 with its line type, ready to store.
curl https://veqen-app.com/v1/phone/check \
-H "Authorization: Bearer $VEQEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"country": "CR", "phone": "8312 3456"}'import os, requests
r = requests.post(
"https://veqen-app.com/v1/phone/check",
headers={"Authorization": f"Bearer {os.environ['VEQEN_API_KEY']}"},
json={"country": "CR", "phone": "8312 3456"},
timeout=10,
)
result = r.json()
print(result["risk"]["verdict"], result["risk"]["reasons"])const res = await fetch("https://veqen-app.com/v1/phone/check", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEQEN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"country": "CR", "phone": "8312 3456"}),
});
const result = await res.json();
console.log(result.risk.verdict, result.risk.reasons);Questions
Costa Rica numbers
What is the country code for Costa Rica?
+506. Dial it after your international access code, or use +506 from a mobile phone.
How do I format a Costa Rica phone number in E.164?
Add +506 in front of the number with no spaces, e.g. +50683123456.
How many digits is a Costa Rica mobile number?
8 digits after the country code.
Does Costa Rica have VoIP phone numbers?
Yes, it has a dedicated VoIP range, and Veqen flags numbers in it.