🇨🇭 Cities in Switzerland — API & JSON data

3,922 cities. 28 regions. 42 languages. That's the current coverage for Switzerland in the Geomelon API, led by Zurich at 448,664 people.

Data updated: 2026-07-14

Live demo

Type to search Switzerland cities…

Top 10 cities by population

CityRegionPopulation
Zurichcanton of Zürich448,664
Genevacanton of Geneva206,635
canton of Basel-Stadt200,973
Baselcanton of Basel-Stadt176,329
Lausannecanton of Vaud144,160
Berncanton of Berne136,988
Winterthurcanton of Zürich119,315
Lucernecanton of Lucerne85,534
St. Gallencanton of St. Gallen78,213
Luganocanton of Ticino63,495

Sample API response

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

[
  {
    "id": "cc2e867e-4ec3-41ed-9834-8cd8aa61f577",
    "name": "Zurich",
    "population": 448664,
    "countryName": "Switzerland",
    "countryCode": "CH",
    "countryEmoji": "🇨🇭",
    "regionName": "canton of Zürich"
  },
  {
    "id": "dee495b8-11d4-4b9b-ab58-31262841715f",
    "name": "Geneva",
    "population": 206635,
    "countryName": "Switzerland",
    "countryCode": "CH",
    "countryEmoji": "🇨🇭",
    "regionName": "canton of Geneva"
  },
  {
    "id": "5306d3d5-a685-4f26-aa0d-f945ea3dedf3",
    "name": "canton of Basel-Stadt",
    "population": 200973,
    "countryName": "Switzerland",
    "countryCode": "CH",
    "countryEmoji": "🇨🇭",
    "regionName": null
  }
]

Try it

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

Free dataset

Prefer a static file? Download 398 Switzerland cities as JSON (61 KB, no API key) from the Switzerland cities dataset page.

FAQ

How many cities in Switzerland does the API return?

Geomelon currently has 3,922 cities in Switzerland across 28 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 Switzerland city names in other languages?

Yes — city names in Switzerland are available in 42 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