πŸ‡΅πŸ‡ͺ Cities in Peru β€” API & JSON data

1,591 cities. 2 regions. 13 languages. That's the current coverage for Peru in the Geomelon API, led by Lima at 9,943,800 people.

Data updated: 2026-07-14

Live demo

Type to search Peru cities…

Top 10 cities by population

CityRegionPopulation
LimaLima Province9,943,800
Trujilloβ€”1,148,668
Arequipaβ€”1,008,290
Chiclayoβ€”552,508
Callaoβ€”537,377
Piuraβ€”473,025
Huancayoβ€”450,900
Cuscoβ€”428,450
Chimboteβ€”395,100
Iquitosβ€”377,609

Sample API response

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

[
  {
    "id": "29643851-a190-4b48-8c88-a78f3885490a",
    "name": "Lima",
    "population": 9943800,
    "countryName": "Peru",
    "countryCode": "PE",
    "countryEmoji": "πŸ‡΅πŸ‡ͺ",
    "regionName": "Lima Province"
  },
  {
    "id": "f578ecc3-5df4-4460-9445-95273c58de76",
    "name": "Trujillo",
    "population": 1148668,
    "countryName": "Peru",
    "countryCode": "PE",
    "countryEmoji": "πŸ‡΅πŸ‡ͺ",
    "regionName": null
  },
  {
    "id": "846fcf38-939b-4822-9ffb-f835eeae40a4",
    "name": "Arequipa",
    "population": 1008290,
    "countryName": "Peru",
    "countryCode": "PE",
    "countryEmoji": "πŸ‡΅πŸ‡ͺ",
    "regionName": null
  }
]

Try it

curl --request GET \
  --url 'https://geomelon.p.rapidapi.com/cities/search?countryCode=pe&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 Peru are available in 13 languages.

Free dataset

Prefer a static file? Download 222 Peru cities as JSON (31 KB, no API key) from the Peru cities dataset page.

FAQ

How many cities in Peru does the API return?

Geomelon currently has 1,591 cities in Peru across 2 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 Peru city names in other languages?

Yes β€” city names in Peru are available in 13 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