Hi Mayssamilliard,
I am sorry but I can’t find the algerian city you wrote to me, so I used another one to wrote an example to you. I think that a good starting point for your request could be using the following query:
[out:json][timeout:25];
area[“admin_level”=8][“boundary”=”administrative”][“name”=”In Salah ⵄⵉⵏ ⵙⴰⵍⴻⵃ عين صالح”]->.searchArea;
(
node(area.searchArea)[building];
way(area.searchArea)[building];
relation(area.searchArea)[building];
);
out center;
out count;
which gave some output.
Please find a working demo of the query following this link http://overpass-turbo.eu/?Q=%5Bout%3Ajson%5D%5Btimeout%3A25%5D%3B%0A%0Aarea%5B%22admin_level%22%3D8%5D%5B%22boundary%22%3D%22administrative%22%5D%5B%22name%22%3D%22In%20Salah%20%E2%B5%84%E2%B5%89%E2%B5%8F%20%E2%B5%99%E2%B4%B0%E2%B5%8D%E2%B4%BB%E2%B5%83%20%D8%B9%D9%8A%D9%86%20%D8%B5%D8%A7%D9%84%D8%AD%22%5D-%3E.searchArea%3B%0A%0A(%0Anode(area.searchArea)%5Bbuilding%5D%3B%0Away(area.searchArea)%5Bbuilding%5D%3B%0Arelation(area.searchArea)%5Bbuilding%5D%3B%0A)%3B%0A%0Aout%20center%3B%0Aout%20count%3B&C=27.21586;2.54454;12
Hope this will help you