{
  "url": "https://phonelookup.dev/country/ba",
  "iso": "BA",
  "slug": "ba",
  "name": "Bosnia and Herzegovina",
  "callingCode": 387,
  "exitCode": "00",
  "preferredExitCode": "",
  "trunkPrefix": "0",
  "mobilePortable": true,
  "mobileStarts": [
    "060",
    "061",
    "062",
    "063",
    "064",
    "065",
    "066",
    "067"
  ],
  "lineTypes": [
    {
      "type": "mobile",
      "label": "Mobile",
      "regex": "6040\\d{5}|6(?:03|[1-356]|44|7\\d)\\d{6}",
      "lengths": [
        8,
        9
      ],
      "localOnlyLengths": [],
      "exampleNational": "061 123 456",
      "exampleInternational": "+387 61 123 456",
      "exampleE164": "+38761123456"
    },
    {
      "type": "fixedLine",
      "label": "Fixed line",
      "regex": "(?:3(?:[05-79][2-9]|1[4579]|[23][24-9]|4[2-4689]|8[2457-9])|49[2-579]|5(?:0[2-49]|[13][2-9]|[268][2-4679]|4[4689]|5[2-79]|7[2-69]|9[2-4689]))\\d{5}",
      "lengths": [
        8
      ],
      "localOnlyLengths": [
        6
      ],
      "exampleNational": "030 212-345",
      "exampleInternational": "+387 30 212-345",
      "exampleE164": "+38730212345"
    },
    {
      "type": "tollFree",
      "label": "Toll-free",
      "regex": "8[08]\\d{6}",
      "lengths": [
        8
      ],
      "localOnlyLengths": [],
      "exampleNational": "080 123 456",
      "exampleInternational": "+387 80 123 456",
      "exampleE164": "+38780123456"
    },
    {
      "type": "sharedCost",
      "label": "Shared cost",
      "regex": "8[12]\\d{6}",
      "lengths": [
        8
      ],
      "localOnlyLengths": [],
      "exampleNational": "082 123 456",
      "exampleInternational": "+387 82 123 456",
      "exampleE164": "+38782123456"
    },
    {
      "type": "premiumRate",
      "label": "Premium-rate",
      "regex": "9[0246]\\d{6}",
      "lengths": [
        8
      ],
      "localOnlyLengths": [],
      "exampleNational": "090 123 456",
      "exampleInternational": "+387 90 123 456",
      "exampleE164": "+38790123456"
    },
    {
      "type": "uan",
      "label": "UAN",
      "regex": "703[235]0\\d{3}|70(?:2[0-5]|3[0146]|[56]0)\\d{4}",
      "lengths": [
        8
      ],
      "localOnlyLengths": [],
      "exampleNational": "070 341 234",
      "exampleInternational": "+387 70 341 234",
      "exampleE164": "+38770341234"
    }
  ],
  "formats": {
    "e164": "+38761123456",
    "international": "+387 61 123 456",
    "national": "061 123 456",
    "rfc3966": "tel:+387-61-123-456"
  },
  "carriers": [
    {
      "name": "BH Telecom",
      "lineType": "mobile",
      "prefixCount": 3,
      "ranges": [
        "060–062"
      ]
    },
    {
      "name": "m:tel",
      "lineType": "mobile",
      "prefixCount": 3,
      "ranges": [
        "065–067"
      ]
    },
    {
      "name": "HT ERONET",
      "lineType": "mobile",
      "prefixCount": 2,
      "ranges": [
        "063–064"
      ]
    }
  ],
  "sandbox": {
    "input": "+38761123456",
    "valid": true,
    "type": "Mobile",
    "carrier": "BH Telecom",
    "region": "BA",
    "formats": {
      "e164": "+38761123456",
      "international": "+387 61 123 456",
      "national": "061 123 456",
      "rfc3966": "tel:+387-61-123-456"
    },
    "parts": {
      "countryCode": "+387",
      "destinationCode": "61",
      "destinationKind": "network code",
      "subscriber": "123456"
    }
  },
  "faq": [
    {
      "question": "How many digits does a phone number in Bosnia and Herzegovina have?",
      "answer": "Mobile numbers have 8 or 9 national digits. Fixed line numbers have 8 national digits (6 when dialled locally). That is the national number, without the country code +387 and without the trunk prefix 0."
    },
    {
      "question": "What is the country code for Bosnia and Herzegovina?",
      "answer": "+387. From abroad, dial your own exit code, then 387, then the national number without its trunk prefix 0. From inside Bosnia and Herzegovina, the exit code for international calls is 00."
    },
    {
      "question": "Which prefixes are mobile numbers in Bosnia and Herzegovina?",
      "answer": "Mobile numbers start with 060, 061, 062, 063, 064, 065, 066 or 067 in national form; the mobile regular expression on this page gives the exact ranges (example: 061 123 456). The carrier table shows which prefix blocks were allocated to which operator."
    },
    {
      "question": "Can a mobile number in Bosnia and Herzegovina be ported to another carrier?",
      "answer": "Yes. Bosnia and Herzegovina has mobile number portability, so a prefix tells you the carrier a number was originally allocated to, not necessarily the one serving it today. Only a live carrier lookup (an HLR or MNP query) answers that."
    }
  ],
  "meta": {
    "dataAsOf": "2026-10-25",
    "dataPoints": 25,
    "references": [
      {
        "authority": "ITU",
        "title": "National numbering plan: Bosnia and Herzegovina",
        "url": "https://www.itu.int/oth/T020200001B/en"
      }
    ]
  },
  "neighbours": [
    "https://phonelookup.dev/country/si.json",
    "https://phonelookup.dev/country/hr.json",
    "https://phonelookup.dev/country/mk.json",
    "https://phonelookup.dev/country/xk.json",
    "https://phonelookup.dev/country/me.json",
    "https://phonelookup.dev/country/rs.json",
    "https://phonelookup.dev/country/ua.json",
    "https://phonelookup.dev/country/sm.json",
    "https://phonelookup.dev/country/mc.json",
    "https://phonelookup.dev/country/ad.json",
    "https://phonelookup.dev/country/by.json",
    "https://phonelookup.dev/country/am.json"
  ]
}
