πŸ‡¨πŸ‡­ Switzerland cities β€” free JSON dataset

398 cities in Switzerland, ranked by population, as a single downloadable JSON file. No API key, no rate limit, no sign-up β€” just a static file you can fetch, cache, or commit straight into your own project.

Data updated: 2026-07-14

Download JSON (61 KB)

Preview

The first few records, largest by population, as they appear in the file:

CityRegionPopulation
Zurichcanton of ZΓΌrich448,664
Genevacanton of Geneva206,635
canton of Basel-Stadtβ€”200,973
Baselcanton of Basel-Stadt176,329
Lausannecanton of Vaud144,160

Field schema

FieldTypeDescription
idstring (UUID)Geomelon city ID
namestringCity name
populationnumberPopulation
latitudenumberLatitude
longitudenumberLongitude
regionstring | nullRegion/state name

What it's for

A flat, population-ranked file like this is a good fit for offline builds, seed data for a database, a country/city dropdown that doesn't need live search, or a quick lookup table in a script or notebook. It's a static snapshot, not a live feed β€” there's no search index, no translations, and no guarantee it reflects changes made to Switzerland's administrative boundaries after 2026-07-14.

Need more?

For prefix search, autocomplete, multilingual names, or coordinate-based queries β€” anything that needs to stay current or searchable β€” use the API instead of the static file:

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'

Try the API free on RapidAPI

License

This dataset is licensed under CC BY 4.0. You're free to use it for any purpose, including commercially, as long as you credit Geomelon with a link back to this page.

All datasets Β· Cities in Switzerland (API docs & demo)