DACH Towns and Villages Database (OpenStreetMap) API
Resolve German, Austrian and Swiss place names, down to hamlets, to coordinates and place class, or list every place around a point.
Search 117,000 cities, towns, villages and hamlets of Germany, Austria and Switzerland from OpenStreetMap: coordinates, place class and population when tagged. Embedded data, pay per record.
Query the full dataset (API, CSV, JSON)
At a glance
- Official source
- Contains data from OpenStreetMap, (c) OpenStreetMap contributors, ODbL 1.0 (https://www.openstreetmap.org/copyright). This dataset is a derived database and must be shared under ODbL 1.0 when redistributed.
- Licence
- ODbL 1.0 ; (c) OpenStreetMap contributors
- Snapshot
- 2026-11
- Coverage
- Extracted from OpenStreetMap (Overpass), licence ODbL 1.0, (c) OpenStreetMap contributors. This dataset is a derived database (Derivative Database under the ODbL): if you publish it or a database derived from it, you must credit OpenStreetMap and share it under ODbL 1.0. Personal data (phone numbers, e-mail addresses, operator names, memorial inscriptions) were removed. Null means the source gives no value; it is never 0. Coverage depends on the source sites: alpen-atlas = Germany, Austria, Switzerland; atlas-montagne and resurgence-atlas = France (including overseas), resurgence-atlas also a Belgium/Switzerland extension. Where the same OSM element appears in two source sites, fields are merged (first non-null wins, alpen-atlas first) and source_sites lists both. Source: alpen-atlas (DE, AT, CH). Population is null for 73 % of places.
- Excluded
- Nothing.
Who uses it
- DACH delivery startup: Geocode village names to lat and lon by name and country to assign delivery zones.
- Local news publisher: List every place of class village or town within a radius of its newsroom to tag stories.
- Property portal developer: Build a location autocomplete from name, place and population for DE, AT and CH.
What you can query
- Place name
- Country code (DE, AT, CH)
- Place class (city, town, village, hamlet)
- Min population / Max population
Fields
| Field | Type | Description |
|---|---|---|
id | string | OpenStreetMap element id (n=node, w=way, r=relation) or slug; unique within kind. |
name | string | Name as tagged in OpenStreetMap. |
lat | number | Latitude, decimal degrees. |
lon | number | Longitude, decimal degrees. |
country | string | ISO country code when the source gives it (DE, AT, CH, BE); null for records from the French source sites, which carry no country field. |
place | string | OSM place class (city, town, village, hamlet...). |
population | number | Population tag, null if untagged (73 % are null). |
Quick start
Python (pip install apify-client):
from apify_client import ApifyClient
client = ApifyClient('<YOUR_APIFY_TOKEN>')
run = client.actor('phonic_lily/places').call(run_input={'countries': ['DE'], 'maxResults': 10})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
print(item)HTTP:
curl -X POST 'https://api.apify.com/v2/acts/phonic_lily~places/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
-H 'Content-Type: application/json' -d '{"countries": ["DE"], "maxResults": 10}'
FAQ
Where does the DACH Towns and Villages Database (OpenStreetMap) data come from?
Contains data from OpenStreetMap, (c) OpenStreetMap contributors, ODbL 1.0 (https://www.openstreetmap.org/copyright). This dataset is a derived database and must be shared under ODbL 1.0 when redistributed. Extracted from OpenStreetMap (Overpass), licence ODbL 1.0, (c) OpenStreetMap contributors. This dataset is a derived database (Derivative Database under the ODbL): if you publish it or a database derived from it, you must credit OpenStreetMap and share it under ODbL 1.0. Personal data (phone numbers, e-mail addresses, operator names, memorial inscriptions) were removed. Null means the source gives no value; it is never 0. Coverage depends on the source sites: alpen-atlas = Germany, Austria, Switzerland; atlas-montagne and resurgence-atlas = France (including overseas), resurgence-atlas also a Belgium/Switzerland extension. Where the same OSM element appears in two source sites, fields are merged (first non-null wins, alpen-atlas first) and source_sites lists both. Source: alpen-atlas (DE, AT, CH). Population is null for 73 % of places.
What can I filter on?
Place name; Country code (DE, AT, CH); Place class (city, town, village, hamlet); Min population / Max population.
How much does it cost?
The full dataset is an API on Apify, paid per result returned; the current price is on https://apify.com/phonic_lily/places.
Can an AI agent query it?
Yes, through the MCP server io.github.adminglobalcostdata/alps-mountain-outdoor on the official MCP registry.
How recent is the data?
Snapshot of 2026-11 from the official source.
Related datasets
- Peaks, Passes & Viewpoints: DE AT CH FR (OSM+IGN)
- Alpine Huts & Refuges: DE AT CH FR (OSM)
- Refuges.info: 3,400 Mountain Huts in France (CC BY-SA)
- Ski Pistes, Lifts & Resorts: DE AT CH (OSM)
- Climbing Crags, Caves & Via Ferrata: DE AT CH FR (OSM)
- Waterfalls, Beaches, Glaciers & Protected Areas (OSM)
Publisher: Henri Bousquet, adminglobalcostdata@gmail.com. Data from official public sources; source and licence are stated in every record.