🇲🇾 Cities in Malaysia — API & JSON data

Geomelon tracks 8,681 cities in Malaysia, spread across 15 regions. Kuala Lumpur is the largest, with a population of 9,000,280. City names are available in 10 languages through the API below.

Data updated: 2026-07-14

Live demo

Type to search Malaysia cities…

Top 10 cities by population

CityRegionPopulation
Kuala Lumpur9,000,280
KlangSelangor878,000
IpohPerak866,772
Seberang PeraiPenang815,767
Johor BahruJohor797,882
George TownPenang794,313
Subang JayaSelangor708,296
Petaling JayaSelangor638,516
KuantanPahang607,778
Shah AlamSelangor584,340

Sample API response

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

[
  {
    "id": "ab0eb60f-625a-4efe-ae68-fab4b9803ba1",
    "name": "Kuala Lumpur",
    "population": 9000280,
    "countryName": "Malaysia",
    "countryCode": "MY",
    "countryEmoji": "🇲🇾",
    "regionName": null
  },
  {
    "id": "885a2501-6d03-4c33-bf56-689d5002ab1b",
    "name": "Klang",
    "population": 878000,
    "countryName": "Malaysia",
    "countryCode": "MY",
    "countryEmoji": "🇲🇾",
    "regionName": "Selangor"
  },
  {
    "id": "9bfbcf0c-df9b-43c2-88e1-5776a8901288",
    "name": "Ipoh",
    "population": 866772,
    "countryName": "Malaysia",
    "countryCode": "MY",
    "countryEmoji": "🇲🇾",
    "regionName": "Perak"
  }
]

Try it

curl --request GET \
  --url 'https://geomelon.p.rapidapi.com/cities/search?countryCode=my&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 Malaysia are available in 10 languages.

Free dataset

Prefer a static file? Download 42 Malaysia cities as JSON (6 KB, no API key) from the Malaysia cities dataset page.

FAQ

How many cities in Malaysia does the API return?

Geomelon currently has 8,681 cities in Malaysia across 15 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 Malaysia city names in other languages?

Yes — city names in Malaysia 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