Geography API

Searchable database of countries, cities, calling codes, currencies and a lot more.
curl --request GET \
--url 'https://api.apilayer.com/geo/city/name/{city}' \
--header 'apikey: dq2TlGLIDrBh1OHx0o7umAtVyyhNzFrE'
[{"country":{"code":"EE","name":"Estonia"},"geo_id":588409,"latitude":59.436958,"longitude":24.753531,"name":"Tallinn","state_or_region":"Harjumaa"}]

Searchable database of countries, cities, calling codes, currencies and a lot more.

This API has the following functionalities:

  • Get a city by name
  • Get a country by phone calling code
  • Get a country by its capital city
  • Get all the major cities of a country
  • Get the major cities by country and region or state name
  • Get a country by its 2 character code
  • Get all the countries using a specific currency
  • Get all the countries speaking a specific language
  • Get a country by name
  • Get a country by region
  • Get all the countries in a regional bloc (Such as EU)
  • Get a country by its top level domain (tld)
  • Gets a currency by its code
  • Gets a currency by name