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

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.