placedb

Countries

🇵🇪 Peru 25 administrative divisions

25 first-level administrative divisions (states, provinces, regions or counties, depending on the country) and 6,864 cities and towns, each with latitude and longitude. Public domain, free to download, no API key.

The country

ISO 3166-1
PE · PER · 604
Capital
Lima
Continent
South America
Currency
PEN, Nuevo sol
Calling code
+51
Internet domain
.pe
Divisions
25
Cities and towns
6,864

Divisions

The 25 divisions of Peru

25 of them carry an ISO 3166-2 code. Counts are cities and towns inside each division.

Division ISO 3166-2 Cities and towns Population
Amazonas Department PE-AMA 107 379,384
Ancash Department PE-ANC 205 1,063,459
Apurimac Department PE-APU 97 404,190
Arequipa Department PE-ARE 137 1,814,554
Ayacucho Department PE-AYA 147 616,176
Cajamarca Department PE-CAJ 146 1,341,012
Callao Region PE-CAL 1 –
Cusco Department PE-CUS 198 1,205,527
Huancavelica Department PE-HUV 117 347,639
Huanuco Department PE-HUC 169 807,393
Ica Department PE-ICA 51 850,765
Junin Department PE-JUN 142 1,246,038
La Libertad Department PE-LAL 118 1,778,080
Lambayeque Department PE-LAM 59 1,197,260
Lima Department PE-LIM 1,729 9,485,405
Loreto Department PE-LOR 95 883,510
Madre de Dios Department PE-MDD 30 141,070
Moquegua Department PE-MOQ 23 174,863
Pasco Department PE-PAS 34 254,065
Piura Department PE-PIU 2,760 1,856,809
Puno Department PE-PUN 135 1,172,697
San Martin Department PE-SAM 87 813,381
Tacna Department PE-TAC 49 329,332
Tumbes Department PE-TUM 190 224,863
Ucayali Department PE-UCA 37 623,868

A further 1 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 Peru
curl -s https://api.placedb.org/v1/regions/PE.json

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

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