placedb

Countries

🇬🇧 United Kingdom 4 administrative divisions

4 first-level administrative divisions — states, provinces, regions or counties, depending on the country — and 36,935 cities and towns, each with latitude and longitude. Public domain, free to download, no API key.

The country

ISO 3166-1
GB · GBR · 826
Capital
London
Continent
Europe
Currency
GBP — pound sterling
Calling code
+44
Internet domain
.uk
Divisions
4
Cities and towns
36,935

Divisions

The 4 divisions of United Kingdom

4 of them carry an ISO 3166-2 code. Counts are cities and towns inside each division.

Division ISO 3166-2 Cities and towns Population
England GB-ENG 26,757 53,012,456
Scotland GB-SCT 4,771 5,404,700
Wales GB-WLS 4,761 3,131,640
Northern Ireland GB-NIR 615 1,852,168

A further 31 places could not be matched to a division and are listed separately in the API as "unassigned": true.

Get it

Both files, in one request each

# every division of United Kingdom
curl -s https://api.placedb.org/v1/regions/GB.json

# the cities and towns of one division (id from the file above)
curl -s https://api.placedb.org/v1/cities/GB/<id>.json

No key, no account, no rate limit. The endpoints · try it live.