Search by Capital City and Calling Code

Learn how to search for a country by its capital city and calling code using the REST Countries API.

The capital city of a country is often the political and administrative center of the country, and it may be the largest and most populous city in the country as well. The calling code is the code that is used to make phone calls to a specific country.

Searching for a country by its capital city and calling code can be helpful in several ways. For example, if you are trying to make a phone call to someone in a specific country, you can use the calling code to determine the correct way to dial the number. Additionally, knowing the capital city can be a good starting point for your research if you are trying to find information about a specific country.

Get hands-on with 1200+ tech skills courses.