Overpass query example

Museums in a city

Find museums and galleries. Example: Berlin.

Museums are tagged tourism=museum; art galleries that are not museums are tourism=gallery.

The query

[out:json][timeout:60];
area["name"="Berlin"]["admin_level"="4"]->.a;
nwr["tourism"="museum"](area.a);
out center;

Run it

Running the query…

Live result from overpass.ch, cached for up to 12 hours. Map data © OpenStreetMap contributors (ODbL).

How it works

  1. out center; handles museums mapped as buildings.
  2. Many have website, opening_hours and wikidata tags.

Variations

  • Museums and galleries: ["tourism"~"^(museum|gallery)$"].

Run it from your code

curl https://api.overpass.ch/v1/YOUR_API_KEY/interpreter \
  --data-urlencode 'data@query.overpassql'

Save the query as query.overpassql. It works the same in Overpass Turbo, QGIS and JOSM.

More examples

All examples →