placedb

Countries

🇨🇭 Switzerland 26 administrative divisions

26 first-level administrative divisions (states, provinces, regions or counties, depending on the country) and 22,507 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
22,507

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 950 726,894
Canton of Appenzell Ausserrhoden CH-AR 586 56,495
Canton of Appenzell Innerrhoden CH-AI 341 16,585
Canton of Basel-Landschaft CH-BL 485 298,837
Canton of Basel-Stadt CH-BS 30 200,031
Canton of Berne CH-BE 4,828 1,063,533
Canton of Fribourg CH-FR 1,081 341,537
Canton of Geneva CH-GE 159 524,410
Canton of Glarus CH-GL 118 42,056
Canton of Jura CH-JU 448 74,548
Canton of Lucerne CH-LU 2,635 432,744
Canton of Neuchatel CH-NE 442 178,291
Canton of Nidwalden CH-NW 325 45,016
Canton of Obwalden CH-OW 356 39,272
Canton of Schaffhausen CH-SH 141 87,111
Canton of Schwyz CH-SZ 684 167,403
Canton of Solothurn CH-SO 496 286,844
Canton of St. Gallen CH-SG 1,669 535,114
Canton of the Grisons CH-GR 703 204,888
Canton of Thurgau CH-TG 1,037 295,220
Canton of Ticino CH-TI 557 358,903
Canton of Uri CH-UR 221 37,931
Canton of Valais CH-VS 602 365,844
Canton of Vaud CH-VD 1,378 845,870
Canton of Zug CH-ZG 268 132,556
Canton of Zurich CH-ZH 1,966 1,620,020

A further 1 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.