placedb

Countries

🇨🇭 Switzerland 26 administrative divisions

26 first-level administrative divisions (states, provinces, regions or counties, depending on the country) and 4,344 cities and towns, each with latitude and longitude. Public domain, free to download, no API key.

The country

ISO 3166-1
CH · CHE · 756
Capital
Bern
Continent
Europe
Currency
CHF, Swiss franc
Calling code
+41
Internet domain
.ch
Divisions
26
Cities and towns
4,344

Divisions

The 26 divisions of Switzerland

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

Division ISO 3166-2 Cities and towns Population
Canton of Aargau CH-AG 214 726,894
Canton of Appenzell Ausserrhoden CH-AR 24 56,495
Canton of Appenzell Innerrhoden CH-AI 22 16,585
Canton of Basel-Landschaft CH-BL 77 298,837
Canton of Basel-Stadt CH-BS 28 200,031
Canton of Berne CH-BE 570 1,063,533
Canton of Fribourg CH-FR 252 341,537
Canton of Geneva CH-GE 85 524,410
Canton of Glarus CH-GL 42 42,056
Canton of Jura CH-JU 87 74,548
Canton of Lucerne CH-LU 130 432,744
Canton of Neuchatel CH-NE 90 178,291
Canton of Nidwalden CH-NW 23 45,016
Canton of Obwalden CH-OW 23 39,272
Canton of Schaffhausen CH-SH 50 87,111
Canton of Schwyz CH-SZ 74 167,403
Canton of Solothurn CH-SO 108 286,844
Canton of St. Gallen CH-SG 208 535,114
Canton of the Grisons CH-GR 373 204,888
Canton of Thurgau CH-TG 254 295,220
Canton of Ticino CH-TI 329 358,903
Canton of Uri CH-UR 31 37,931
Canton of Valais CH-VS 268 365,844
Canton of Vaud CH-VD 354 845,870
Canton of Zug CH-ZG 34 132,556
Canton of Zurich CH-ZH 592 1,620,020

A further 2 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 Switzerland
curl -s https://api.placedb.org/v1/regions/CH.json

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

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