placedb

Countries

🇱🇰 Sri Lanka 9 administrative divisions

9 first-level administrative divisions (states, provinces, regions or counties, depending on the country) and 2,422 cities and towns, each with latitude and longitude. Public domain, free to download, no API key.

The country

ISO 3166-1
LK · LKA · 144
Capital
Sri Jayawardenepura Kotte
Continent
Asia
Currency
LKR, Sri Lankan rupee
Calling code
+94
Internet domain
.lk
Divisions
9
Cities and towns
2,422

Divisions

The 9 divisions of Sri Lanka

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

Division ISO 3166-2 Cities and towns Population
Central Province LK-2 1,337 2,712,804
Eastern Province LK-5 54 1,551,381
North Central Province LK-7 11 1,406,890
North Western Province LK-6 29 2,578,894
Northern Province LK-4 450 1,149,240
Sabaragamuwa Province LK-9 29 2,015,039
Southern Province LK-3 273 2,605,506
Uva Province LK-8 34 1,266,463
Western Province LK-1 161 5,821,710

A further 44 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 Sri Lanka
curl -s https://api.placedb.org/v1/regions/LK.json

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

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