๐Ÿ‡น๐Ÿ‡ญ Cities in Thailand โ€” API & JSON data

Geomelon tracks 350 cities in Thailand, spread across 77 regions. Bangkok is the largest, with a population of 5,676,648. City names are available in 7 languages through the API below.

Data updated: 2026-07-14

Live demo

Type to search Thailand citiesโ€ฆ

Top 10 cities by population

CityRegionPopulation
Bangkokโ€”5,676,648
Chiang MaiChiang Mai1,198,000
Phraeโ€”437,350
NonthaburiNonthaburi255,671
Pak KretNonthaburi184,501
Chaophraya SurasakChon Buri160,582
Hat YaiSongkhla159,130
Surat ThaniSurat Thani130,703
Udon ThaniUdon Thani130,274
Nakhon RatchasimaNakhon Ratchasima128,217

Sample API response

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

[
  {
    "id": "225e1638-96f3-4a75-aefe-ee6fddf4d043",
    "name": "Bangkok",
    "population": 5676648,
    "countryName": "Thailand",
    "countryCode": "TH",
    "countryEmoji": "๐Ÿ‡น๐Ÿ‡ญ",
    "regionName": null
  },
  {
    "id": "369d7681-885a-4e7a-adc1-a457d3a46c70",
    "name": "Chiang Mai",
    "population": 1198000,
    "countryName": "Thailand",
    "countryCode": "TH",
    "countryEmoji": "๐Ÿ‡น๐Ÿ‡ญ",
    "regionName": "Chiang Mai"
  },
  {
    "id": "c0f0375c-eb29-4bbb-ab98-97bf73ed6597",
    "name": "Phrae",
    "population": 437350,
    "countryName": "Thailand",
    "countryCode": "TH",
    "countryEmoji": "๐Ÿ‡น๐Ÿ‡ญ",
    "regionName": null
  }
]

Try it

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

Free dataset

Prefer a static file? Download 259 Thailand cities as JSON (38 KB, no API key) from the Thailand cities dataset page.

FAQ

How many cities in Thailand does the API return?

Geomelon currently has 350 cities in Thailand across 77 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 Thailand city names in other languages?

Yes โ€” city names in Thailand are available in 7 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