Mexico
Mexico State Codes
When dealing with addresses or locations in Mexico, our API uses the following state codes. These codes are based on the ISO 3166-2:MX standard for Mexico's states and federal entities.
Code | State | Category |
---|---|---|
MX-AGU | Aguascalientes | State |
MX-BCN | Baja California | State |
MX-BCS | Baja California Sur | State |
MX-CAM | Campeche | State |
MX-CHP | Chiapas | State |
MX-CHH | Chihuahua | State |
MX-CMX | Ciudad de México | Federal Entity |
MX-COA | Coahuila de Zaragoza | State |
MX-COL | Colima | State |
MX-DUR | Durango | State |
MX-GTO | Guanajuato | State |
MX-GRO | Guerrero | State |
MX-HID | Hidalgo | State |
MX-JAL | Jalisco | State |
MX-MEX | Estado de México | State |
MX-MIC | Michoacán de Ocampo | State |
MX-MOR | Morelos | State |
MX-NAY | Nayarit | State |
MX-NLE | Nuevo León | State |
MX-OAX | Oaxaca | State |
MX-PUE | Puebla | State |
MX-QRO | Querétaro | State |
MX-ROO | Quintana Roo | State |
MX-SLP | San Luis Potosí | State |
MX-SIN | Sinaloa | State |
MX-SON | Sonora | State |
MX-TAB | Tabasco | State |
MX-TAM | Tamaulipas | State |
MX-TLA | Tlaxcala | State |
MX-VER | Veracruz de Ignacio de la Llave | State |
MX-YUC | Yucatán | State |
MX-ZAC | Zacatecas | State |
Usage Notes
- Mexico is divided into 31 states and 1 federal entity
- All codes follow the format 'MX-' followed by the traditional state abbreviation
- Administrative divisions:
- 31 states (estados)
- 1 federal entity (entidad federativa)
- The Federal Entity:
- Ciudad de México (MX-CMX)
- Has special status as the national capital
- Was formerly known as Distrito Federal (DF)
- Is commonly referred to as CDMX
- Is not part of any state
- Notable States:
- Estado de México (MX-MEX) is distinct from Ciudad de México
- Some states have full official names that include historical figures (e.g., Veracruz de Ignacio de la Llave)
- When specifying locations in Mexico in your API requests, please use these exact codes for the state or federal entity
- All state names retain their proper Spanish spelling with diacritical marks (e.g., Nuevo León, San Luis Potosí, Yucatán)
Updated 2 months ago