While in principle it is possible to do this with the [Overpass API/Overpass turbo](http://overpass-turbo.eu/), doing it for a larger city is likely to fail because of processing time and output size issues.
The alternative is to download current OSM data covering your area of interest (for example from [Geodabrik](http://download.geofabrik.de/)), [Geofabrik](http://download.geofabrik.de/)), extract, filter and convert (to a format with instantiated geometries) yourself. For example with [Osmium](https://osmcode.org/osmium-tool/).