libphonenumber API

Bosnia and Herzegovina Phone Number Format

Country code +387 · ISO BA

How to format, dial, and validate Bosnia and Herzegovina phone numbers, with live examples.

Country Code

+387

National Prefix

0

International Prefix

00

Mobile Portability

Yes

Try it now

Pre-filled with a valid fixed line number for Bosnia and Herzegovina. Edit it and click "Try It" to see the parsed result.

Number Types & Example Formats

Each Bosnia and Herzegovina phone-number type supported by libphonenumber, with a real example formatted three ways.

Type Length National International E.164
Fixed Line 8 digits 030 212-345 +387 30 212-345 +38730212345
Mobile 8–9 digits 061 123 456 +387 61 123 456 +38761123456
Premium Rate 8 digits 090 123 456 +387 90 123 456 +38790123456
Shared Cost 8 digits 082 123 456 +387 82 123 456 +38782123456
Toll Free 8 digits 080 123 456 +387 80 123 456 +38780123456
UAN 8 digits 070 341 234 +387 70 341 234 +38770341234

How to Dial Bosnia and Herzegovina Numbers

From abroad

Dial +387 followed by the national number, dropping any leading 0.

Within Bosnia and Herzegovina

Dial 0 before the local number to make a domestic call.

Dialing out of Bosnia and Herzegovina

Dial 00 followed by the destination country code and number.

Area Codes

Browse Bosnia and Herzegovina area codes with cities, timezones, and example numbers for each.

View Bosnia and Herzegovina area codes →

Validate a Bosnia and Herzegovina Number with the API

Send the number to the free libphonenumber API to get the parsed country, type, formatting, and validity.

Request
curl https://libphonenumberapi.com/api/phone-numbers/+38730212345

Frequently Asked Questions

What is the country code for Bosnia and Herzegovina?

The international country code for Bosnia and Herzegovina is +387. Use this prefix when dialing Bosnia and Herzegovina numbers from another country.

How long is a Bosnia and Herzegovina phone number?

Bosnia and Herzegovina phone numbers are typically 8 digits, not including the +387 country code.

How do I dial a Bosnia and Herzegovina phone number from abroad?

From abroad, dial +387 followed by the national number, dropping any leading 0. Within Bosnia and Herzegovina, dial 0 before the local number.

How do I validate a Bosnia and Herzegovina phone number programmatically?

Send a GET request to https://libphonenumberapi.com/api/phone-numbers/<number>. The free libphonenumber API returns the parsed country, format, type, and validity for any number — no API key required.