🇵🇹 Cities in Portugal — API & JSON data

4,738 cities. 20 regions. 16 languages. That's the current coverage for Portugal in the Geomelon API, led by Lisbon at 545,796 people.

Data updated: 2026-07-14

Live demo

Type to search Portugal cities…

Top 10 cities by population

CityRegionPopulation
Lisbon545,796
BragaBraga181,494
GuimarãesBraga156,830
Agualva-CacémLisbon81,020
QueluzLisbon78,273
GuimarãesBraga54,178
Freguesia de MafamudePorto District38,940
Agualva35,824
Freguesia de Estoril26,399
Freguesia de Cacém21,289

Sample API response

GET /cities/search?countryCode=pt&sort=population_desc&limit=3

[
  {
    "id": "cf895688-3ff2-42f9-bec0-bac5eb2710cf",
    "name": "Lisbon",
    "population": 545796,
    "countryName": "Portugal",
    "countryCode": "PT",
    "countryEmoji": "🇵🇹",
    "regionName": null
  },
  {
    "id": "7c048a95-57c3-4efe-a9e8-fbe9de47a50c",
    "name": "Braga",
    "population": 181494,
    "countryName": "Portugal",
    "countryCode": "PT",
    "countryEmoji": "🇵🇹",
    "regionName": "Braga"
  },
  {
    "id": "6dc35a5f-9483-4796-a565-4a5b4198a2fa",
    "name": "Guimarães",
    "population": 156830,
    "countryName": "Portugal",
    "countryCode": "PT",
    "countryEmoji": "🇵🇹",
    "regionName": "Braga"
  }
]

Try it

curl --request GET \
  --url 'https://geomelon.p.rapidapi.com/cities/search?countryCode=pt&sort=population_desc&limit=10' \
  --header 'x-rapidapi-host: geomelon.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_API_KEY'

Multilingual city names

City names in Portugal are available in 16 languages.

Free dataset

Prefer a static file? Download 128 Portugal cities as JSON (20 KB, no API key) from the Portugal cities dataset page.

FAQ

How many cities in Portugal does the API return?

Geomelon currently has 4,738 cities in Portugal across 20 regions. Results are paginated, up to 100 per request.

Is there a free tier?

Yes. RapidAPI's free tier covers a fixed number of requests per month with no credit card required. There is also a free, no-key city-autocomplete endpoint (the demo above) for prefix search.

Can I get Portugal city names in other languages?

Yes — city names in Portugal are available in 16 languages. Pass the languages you want via the preferredLanguages parameter, most-preferred first.

Do I need an API key?

The main search and lookup endpoints require a free RapidAPI key. The prefix-search autocomplete endpoint used in the demo above is public and does not require a key.

Try free on RapidAPI

Related