MXNorth America · North America

Mexico Address Validation API

Validate and standardise Mexico addresses in real time. Get a matched address, geocoordinates, confidence score, and Código Postal (CP) data via a single API call.

NNNNN
Código Postal (CP)
OpenStreetMap
Data Source
Spanish
Languages
HIGH
Max Confidence

Mexico Address Validation Demo

Confidence:HIGH
POST /enrich — ResponseSample
{
  "_note": "Sample response — enter any address and click Validate for live data",
  "valid": true,
  "canonical_address": "Palacio Nacional, Plaza de la Constitución S/N, Centro Histórico, 06066 CDMX",
  "confidence": "HIGH",
  "delivery_risk": "low",
  "matched_address": {
    "line1": "Palacio Nacional",
    "city": "Centro",
    "postal_code": "06066 CDMX",
    "country": "Mexico",
    "iso2": "MX"
  },
  "geocode": {
    "lat": 19.4326,
    "lng": -99.1332
  },
  "data_source": "OpenStreetMap",
  "issues": []
}

Mexico Address Format

Mexican addresses list: street name + exterior number (and optional interior number), colonia (neighbourhood), city, state, and 5-digit postal code. Mexico City uses 01xxx–16xxx. The colonia is essential for delivery routing.

Postal Code Name
Código Postal (CP)
Format
NNNNN
Official Languages
Spanish
Sample address:
Palacio Nacional, Plaza de la Constitución S/N, Centro Histórico, 06066 CDMX
Major cities:
Mexico CityGuadalajaraMonterreyPueblaTijuanaLeónJuárez

Integration Code

curl -X POST https://agent.apitier.com/v1/enrich \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"address": "Palacio Nacional, Plaza de la Constitución S/N, Centro Histórico, 06066 CDMX"}'

Frequently Asked Questions

What address format does Mexico use?
Mexican addresses list: street name + exterior number (and optional interior number), colonia (neighbourhood), city, state, and 5-digit postal code. Mexico City uses 01xxx–16xxx. The colonia is essential for delivery routing.
What is a Código Postal (CP) in Mexico?
Mexico uses a Código Postal (CP) with the format NNNNN to identify delivery areas. The APITier Address Agent API validates and standardises addresses including the Código Postal (CP) as part of the response.
How do I validate a Mexico address via API?
Send a POST request to https://agent.apitier.com/v1/enrich with your address string in the request body and your API key in the x-api-key header. The response includes the standardised Mexico address, geocoordinates (lat/lng), a confidence score (HIGH/MEDIUM/LOW), and data source information.

More North America Countries

Ready to validate Mexico addresses at scale?

The APITier Address Agent API handles address validation across 120+ countries. Free trial — 20 requests, no credit card required.