placedb

Countries

🇲🇾 Malaysia 16 administrative divisions

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

The country

ISO 3166-1
MY · MYS · 458
Capital
Kuala Lumpur
Continent
Asia
Currency
MYR — Malaysian ringgit
Calling code
+60
Internet domain
.my
Divisions
16
Cities and towns
1,723

Divisions

The 16 divisions of Malaysia

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

Division ISO 3166-2 Cities and towns Population
Sarawak MY-13 347 2,453,700
Sabah MY-12 220 3,418,785
Johor MY-01 207 3,348,283
Selangor MY-10 184 5,411,324
Perak MY-08 135 2,258,428
Kedah MY-02 111 2,131,400
Pahang MY-06 105 1,443,365
Penang MY-07 85 1,740,400
Negeri Sembilan MY-05 76 997,071
Terengganu MY-11 65 1,015,776
Kelantan MY-03 56 1,792,500
Malacca MY-04 55 998,400
Kuala Lumpur MY-14 31 9,000,280
Perlis MY-09 25 251,500
Labuan MY-15 4 95,100
Putrajaya MY-16 1 109,202

A further 16 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 Malaysia
curl -s https://api.placedb.org/v1/regions/MY.json

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

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