---
id: "ba_phone"
kind: "pattern"
status: "draft"
is_pii: true
categories: ["pii", "common", "telecom"]
country: ["BA"]
langs: ["common"]
quality: 73
url: "https://registry.apicrafter.io/datatype/ba_phone"
---

# Bosnia and Herzegovina phone number (E.164) (`ba_phone`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Phone number of Bosnia and Herzegovina in international E.164 form: a plus sign, the country calling code +387 and the national number, with no spaces. The regexp follows the national number pattern of Google libphonenumber. National formats with a trunk prefix and numbers written with spaces or hyphens are not covered.

- Pattern of: `phone`
- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Common (common), Telecommunications (telecom)
- Countries: Bosnia and Herzegovina (BA)
- Languages: Common to most languages (common)

## Detection

Regular expression (Python `re`):

```
^\+387(?:6\d{8}|(?:[35689]\d|49|70)\d{6})$
```

## Examples

- `+38730212345` — Example number from Google libphonenumber (fixed line)
- `+38761123456` — Example number from Google libphonenumber (mobile)

## Supported by tools

- `libphonenumber`

## Sources

- other: <https://github.com/google/libphonenumber/blob/master/resources/PhoneNumberMetadata.xml>

## Quality

Score 73/100. Missing: negative example, authoritative source link, mapping (Wikidata, Schema.org, ...), translation.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/ba_phone.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BA/telecom/ba_phone.yaml>
