Data sources
The directory does not depend on one unofficial area-code API.
Country metadata comes from the mledoze/countries dataset, the same public reference long used by REST Countries. REST Countries v3 is deprecated and the current hosted API uses its own access terms, so this project stores a normalized copy instead of calling that API on every page view.
ITU-T E.164 is the numbering standard. The ITU national numbering plan index is the official place to review a country plan. Those sites are references, not a JSON feed of every city code.
libphonenumber-js supplies phone parsing and validation. It is a library, not a hosted lookup of live numbers. Twilio Lookup is not enabled.
mledoze/countries
Country names, ISO 3166 codes, capitals, continents, currencies, languages and IDD calling-code fields.
https://github.com/mledoze/countries
Type: reference-dataset. License: Open Database License; see the source repository
ITU-T Recommendation E.164
International public telecommunication numbering plan. Used as the numbering standard. It is not a city-code feed.
https://www.itu.int/rec/T-REC-E.164-202602-I/en
Type: standard. License: ITU publications
ITU National Numbering Plans
Index of national numbering plans published by national administrations. Individual plans were not bulk-imported.
https://www.itu.int/ITU-T/inr/nnp/
Type: official-index. License: ITU
North American Numbering Plan Administrator
Reference for curated United States and Canada geographic codes and for NANP member codes carried in the country dataset.
Type: numbering-administrator. License: Public numbering assignments
Ofcom UK Numbering
Reference for curated United Kingdom geographic codes.
https://www.ofcom.org.uk/phones-and-broadband/phone-numbers
Type: regulator. License: Public numbering information
Curated national numbering references
Geographic codes compiled from widely published national plans. Each record stays unverified until a reviewer checks it against the current national source.
https://www.itu.int/ITU-T/inr/nnp/
Type: curated-reference. License: Public numbering information
flagcdn
Flag images are addressed by ISO 3166-1 alpha-2 code. They are not embedded in this repository.
Type: flag-cdn. License: See flagcdn.com