Use in tests
Load the JSON into fixture factories or import the CSV into QA tools. Pin the version when reproducibility matters.
Open developer data
Download calling codes, national patterns, E.164 examples, length notes and official-source links for the 31 countries currently supported by GetPhoneNum.
The dataset is available under the MIT license. When it supports documentation, research or an open-source project, link to this canonical page so readers can find the current version and official source notes.
GetPhoneNum country phone format fixtures, version 2026-07-20. https://getphonenum.com/phone-number-datasetSource code, version history and corrections are available in the GitHub repository. Please report stale numbering rules through GitHub Issues with an official reference.
The public JSON Schema Draft 2020-12 contract defines required fields, ISO and E.164 patterns, value types and allowed record properties. Pin the dataset version in reproducible tests and validate updates before importing them.
npx ajv-cli validate -s country-phone-formats.schema.json -d country-phone-formats.json| Field | Meaning |
|---|---|
iso2 | ISO 3166-1 alpha-2 country code used by the tools. |
callingCode | International E.164 country calling code. |
nationalPattern | Human-readable national presentation pattern. |
e164Example | Canonical test fixture used in examples. |
fixtureSafety | Whether the example is reserved or only structurally plausible. |
sourceUrl | Official numbering authority or international reference. |
Load the JSON into fixture factories or import the CSV into QA tools. Pin the version when reproducibility matters.
National plans change. Follow each record's source URL and use a maintained numbering library for production validation.
Found a stale pattern or source? Use the contact link in the About page and include the official reference.