{
  "url": "https://phonelookup.dev/country/sm",
  "iso": "SM",
  "slug": "sm",
  "name": "San Marino",
  "callingCode": 378,
  "exitCode": "00",
  "preferredExitCode": "",
  "trunkPrefix": "",
  "mobilePortable": false,
  "mobileStarts": [
    "61",
    "66"
  ],
  "lineTypes": [
    {
      "type": "mobile",
      "label": "Mobile",
      "regex": "6[16]\\d{6}",
      "lengths": [
        8
      ],
      "localOnlyLengths": [],
      "exampleNational": "66 66 12 12",
      "exampleInternational": "+378 66 66 12 12",
      "exampleE164": "+37866661212"
    },
    {
      "type": "fixedLine",
      "label": "Fixed line",
      "regex": "0549(?:8[0157-9]|9\\d)\\d{4}",
      "lengths": [
        10
      ],
      "localOnlyLengths": [
        6
      ],
      "exampleNational": "0549 886377",
      "exampleInternational": "+378 0549 886377",
      "exampleE164": "+3780549886377"
    },
    {
      "type": "voip",
      "label": "VoIP",
      "regex": "5[158]\\d{6}",
      "lengths": [
        8
      ],
      "localOnlyLengths": [],
      "exampleNational": "58 00 11 10",
      "exampleInternational": "+378 58 00 11 10",
      "exampleE164": "+37858001110"
    },
    {
      "type": "premiumRate",
      "label": "Premium-rate",
      "regex": "7[178]\\d{6}",
      "lengths": [
        8
      ],
      "localOnlyLengths": [],
      "exampleNational": "71 12 34 56",
      "exampleInternational": "+378 71 12 34 56",
      "exampleE164": "+37871123456"
    }
  ],
  "formats": {
    "e164": "+37866661212",
    "international": "+378 66 66 12 12",
    "national": "66 66 12 12",
    "rfc3966": "tel:+378-66-66-12-12"
  },
  "carriers": [
    {
      "name": "TELENET",
      "lineType": "mobile",
      "prefixCount": 1,
      "ranges": [
        "61"
      ]
    },
    {
      "name": "Telecom Italia San Marino",
      "lineType": "mobile",
      "prefixCount": 1,
      "ranges": [
        "66"
      ]
    }
  ],
  "sandbox": {
    "input": "+37866661212",
    "valid": true,
    "type": "Mobile",
    "carrier": "Telecom Italia San Marino",
    "region": "SM",
    "formats": {
      "e164": "+37866661212",
      "international": "+378 66 66 12 12",
      "national": "66 66 12 12",
      "rfc3966": "tel:+378-66-66-12-12"
    },
    "parts": {
      "countryCode": "+378",
      "destinationCode": "66",
      "destinationKind": "network code",
      "subscriber": "661212"
    }
  },
  "faq": [
    {
      "question": "How many digits does a phone number in San Marino have?",
      "answer": "Mobile numbers have 8 national digits. Fixed line numbers have 10 national digits (6 when dialled locally). That is the national number, without the country code +378."
    },
    {
      "question": "What is the country code for San Marino?",
      "answer": "+378. From abroad, dial your own exit code, then 378, then the national number. From inside San Marino, the exit code for international calls is 00."
    },
    {
      "question": "Which prefixes are mobile numbers in San Marino?",
      "answer": "Mobile numbers start with 61 or 66 in national form; the mobile regular expression on this page gives the exact ranges (example: 66 66 12 12). The carrier table shows which prefix blocks were allocated to which operator."
    },
    {
      "question": "Can a mobile number in San Marino be ported to another carrier?",
      "answer": "Not on record. The plan data this page is built from does not list mobile number portability for San Marino, so the carrier a prefix was allocated to is likely, not certainly, the carrier serving the number. Only a live carrier lookup (an HLR or MNP query) confirms it."
    }
  ],
  "meta": {
    "dataAsOf": "2026-10-25",
    "dataPoints": 18,
    "references": [
      {
        "authority": "ITU",
        "title": "National numbering plan: San Marino",
        "url": "https://www.itu.int/oth/T02020000B5/en"
      }
    ]
  },
  "neighbours": [
    "https://phonelookup.dev/country/mc.json",
    "https://phonelookup.dev/country/ad.json",
    "https://phonelookup.dev/country/ua.json",
    "https://phonelookup.dev/country/by.json",
    "https://phonelookup.dev/country/rs.json",
    "https://phonelookup.dev/country/am.json",
    "https://phonelookup.dev/country/me.json",
    "https://phonelookup.dev/country/md.json",
    "https://phonelookup.dev/country/xk.json",
    "https://phonelookup.dev/country/ee.json",
    "https://phonelookup.dev/country/hr.json",
    "https://phonelookup.dev/country/lv.json"
  ]
}
