placedb

Countries

🇵🇹 Portugal 20 administrative divisions

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

The country

ISO 3166-1
PT · PRT · 620
Capital
Lisbon
Continent
Europe
Currency
EUR, euro
Calling code
+351
Internet domain
.pt
Divisions
20
Cities and towns
4,093

Divisions

The 20 divisions of Portugal

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

Division ISO 3166-2 Cities and towns Population
Aveiro PT-01 203 77,916
Azores PT-20 61 236,440
Beja PT-02 109 –
Braga PT-03 306 181,919
Braganca PT-04 170 33,586
Castelo Branco PT-05 133 52,192
Coimbra PT-06 240 133,724
Evora PT-07 82 52,454
Faro PT-08 125 60,974
Guarda PT-09 317 39,103
Leiria PT-10 169 124,857
Lisbon PT-11 315 2,135,992
Madeira PT-30 83 250,769
Portalegre PT-12 102 22,359
Porto PT-13 389 1,817,172
Santarem PT-14 226 57,398
Setubal PT-15 120 788,459
Viana do Castelo PT-16 263 84,636
Vila Real PT-17 279 49,868
Viseu PT-18 396 96,991

A further 5 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 Portugal
curl -s https://api.placedb.org/v1/regions/PT.json

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

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