Is it possible to get administrative hierarchy data in osm using overpass api

Hi Team,

is it possible to query administrative hierarchy( country-> state-> city etc) in osm data

Website already does that, i.e. lets you browse through administrative hierarchies of all countries, and export the data in a variety of formats.

Yes, it’s possible. See Key:admin_level and admin_level=* Country specific values in the Wiki.

Please expand your post and describe what you’re trying to accomplish if you have a more specific question.