πŸ‡±πŸ‡° Cities in Sri Lanka β€” API & JSON data

Geomelon tracks 3,140 cities in Sri Lanka, spread across 8 regions. Colombo is the largest, with a population of 647,557. City names are available in 10 languages through the API below.

Data updated: 2026-07-14

Live demo

Type to search Sri Lanka cities…

Top 10 cities by population

CityRegionPopulation
ColomboWestern Province647,557
GampahaWestern Province191,040
BeruwalaWestern Province164,969
Kandyβ€”161,000
NegomboWestern Province142,136
Sri Jayawardenepura KotteWestern Province115,826
TrincomaleeEastern Province115,443
BatticaloaEastern Province95,489
GalleSouthern Province93,118
Dambullaβ€”91,550

Sample API response

GET /cities/search?countryCode=lk&sort=population_desc&limit=3

[
  {
    "id": "17c0c8c6-ffff-41bb-a6ae-da3b6dcffcd4",
    "name": "Colombo",
    "population": 647557,
    "countryName": "Sri Lanka",
    "countryCode": "LK",
    "countryEmoji": "πŸ‡±πŸ‡°",
    "regionName": "Western Province"
  },
  {
    "id": "85053c11-8232-4f24-84e9-cf40e0732aa3",
    "name": "Gampaha",
    "population": 191040,
    "countryName": "Sri Lanka",
    "countryCode": "LK",
    "countryEmoji": "πŸ‡±πŸ‡°",
    "regionName": "Western Province"
  },
  {
    "id": "ed388160-7fbe-4091-8b17-5c996d98c231",
    "name": "Beruwala",
    "population": 164969,
    "countryName": "Sri Lanka",
    "countryCode": "LK",
    "countryEmoji": "πŸ‡±πŸ‡°",
    "regionName": "Western Province"
  }
]

Try it

curl --request GET \
  --url 'https://geomelon.p.rapidapi.com/cities/search?countryCode=lk&sort=population_desc&limit=10' \
  --header 'x-rapidapi-host: geomelon.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_API_KEY'

Multilingual city names

City names in Sri Lanka are available in 10 languages.

Data package

Want the data offline? npm install @geomelon/sri-lanka ships 2,448 Sri Lanka cities, 9 regions and multilingual names, no API key. See the Sri Lanka data package.

FAQ

How many cities in Sri Lanka does the API return?

Geomelon currently has 3,140 cities in Sri Lanka across 8 regions. Results are paginated, up to 100 per request.

Is there a free tier?

Yes. RapidAPI's free tier covers a fixed number of requests per month with no credit card required. There is also a free, no-key city-autocomplete endpoint (the demo above) for prefix search.

Can I get Sri Lanka city names in other languages?

Yes β€” city names in Sri Lanka are available in 10 languages. Pass the languages you want via the preferredLanguages parameter, most-preferred first.

Do I need an API key?

The main search and lookup endpoints require a free RapidAPI key. The prefix-search autocomplete endpoint used in the demo above is public and does not require a key.

Try free on RapidAPI

Related