🇲🇽 Cities in Mexico — API & JSON data

Geomelon's Mexico coverage: 140,742 cities across 32 regions, with name translations in 28 languages — start with Greater Mexico City, the country's largest city at 21,905,000 people.

Data updated: 2026-07-14

Live demo

Type to search Mexico cities…

Top 10 cities by population

CityRegionPopulation
Greater Mexico CityState of Mexico21,905,000
Mexico City9,209,944
TijuanaBaja California1,964,788
San Cristóbal EcatepecState of Mexico1,655,015
León de Los AldamaGuanajuato1,579,803
Puebla CityPuebla1,434,062
GuadalajaraJalisco1,385,621
Ciudad JuárezChihuahua1,321,004
ZapopanJalisco1,257,547
MonterreyNuevo León1,142,952

Sample API response

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

[
  {
    "id": "a4d22645-25cb-4f48-86d1-2996e16b9acd",
    "name": "Greater Mexico City",
    "population": 21905000,
    "countryName": "Mexico",
    "countryCode": "MX",
    "countryEmoji": "🇲🇽",
    "regionName": "State of Mexico"
  },
  {
    "id": "a4a0b5f1-a180-469f-951c-e04717932fe0",
    "name": "Mexico City",
    "population": 9209944,
    "countryName": "Mexico",
    "countryCode": "MX",
    "countryEmoji": "🇲🇽",
    "regionName": null
  },
  {
    "id": "9877962c-f730-439e-be87-73619cbbe0d6",
    "name": "Tijuana",
    "population": 1964788,
    "countryName": "Mexico",
    "countryCode": "MX",
    "countryEmoji": "🇲🇽",
    "regionName": "Baja California"
  }
]

Try it

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

Free dataset

Prefer a static file? Download 356 Mexico cities as JSON (54 KB, no API key) from the Mexico cities dataset page.

FAQ

How many cities in Mexico does the API return?

Geomelon currently has 140,742 cities in Mexico across 32 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 Mexico city names in other languages?

Yes — city names in Mexico are available in 28 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