Not sure what you have tried. If you’re looking for some working examples, you might want to head to: Overpass API/Overpass API by Example - OpenStreetMap Wiki

1 Like