placedb

Countries

🇲🇬 Madagascar 22 administrative divisions

22 first-level administrative divisions — states, provinces, regions or counties, depending on the country — and 1,795 cities and towns, each with latitude and longitude. Public domain, free to download, no API key.

The country

ISO 3166-1
MG · MDG · 450
Capital
Antananarivo
Continent
Africa
Currency
MGA — ariary
Calling code
+261
Internet domain
.mg
Divisions
22
Cities and towns
1,795

Divisions

The 22 divisions of Madagascar

Counts are cities and towns inside each division.

Division ISO 3166-2 Cities and towns Population
Analamanga — 142 —
Atsimo-Andrefana — 128 —
Sofia — 126 —
Atsimo-Atsinanana — 98 —
Haute Matsiatra — 96 —
Alaotra-Mangoro — 92 —
Vakinankaratra — 90 —
Sava Region — 86 805,300
Anosy — 78 —
Diana Region — 73 —
Amoron'i Mania — 61 —
Menabe — 59 —
Androy — 58 —
Itasy — 57 —
Boeny — 50 —
Melaky — 46 —
Betsiboka — 41 —
Analanjirofo — 37 —
Bongolava — 32 —
Ihorombe — 30 —
Ambovombe-Androy — 1 —
Ampasinambo — 1 —

A further 313 places could not be matched to a division and are listed separately in the API as "unassigned": true.

Get it

Both files, in one request each

# every division of Madagascar
curl -s https://api.placedb.org/v1/regions/MG.json

# the cities and towns of one division (id from the file above)
curl -s https://api.placedb.org/v1/cities/MG/<id>.json

No key, no account, no rate limit. The endpoints · try it live.