Postal
Correos de México SEPOMEX logo

Correos de México SEPOMEX API

correosdemexico.gob.mx

SEPOMEX / Correos de México postal-code catalog for Mexican address normalisation

Actions
3
Category
Postal
Login
Not required
Output
JSON

Call the Correos de México SEPOMEX API

Submit a task, then poll the job until it settles. This example runs act_correosdemexico_gob_mx_lookup_colonias_by_cp.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_correosdemexico_gob_mx_lookup_colonias_by_cp",
    "params": {
      "codigo_postal": "06600"
    }
  }'

3 actions on correosdemexico.gob.mx

Read

  • Lookup Colonias by Postal Code

    act_correosdemexico_gob_mx_lookup_colonias_by_cpread1 credit / call

    Given a 5-digit Mexican código postal, return every asentamiento (colonia) with tipo de asentamiento, municipio, estado, ciudad and office key from Correos de México SEPOMEX.

    codigo_postal
    string · required
  • Search Postal Code by Location

    act_correosdemexico_gob_mx_search_cp_by_locationread1 credit / call

    Given Mexican estado, municipio and colonia name, return matching códigos postales and asentamiento details from Correos de México SEPOMEX.

    estado
    string · required
    municipio
    string · required
    colonia
    string · required
  • Validate Address Combination

    act_correosdemexico_gob_mx_validate_addressread1 credit / call

    Validate that a Mexican postal code, colonia, municipality and state combination exists in SEPOMEX and return the canonical spelling.

    codigo_postal
    string · required
    colonia
    string · required
    municipio
    string · required
    estado
    string · required

Correos de México SEPOMEX API questions

Is there an API for Correos de México SEPOMEX?
Correos de México SEPOMEX does not offer a public data API for this, but Anakin Wire provides 3 maintained endpoints for correosdemexico.gob.mx. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape Correos de México SEPOMEX data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when correosdemexico.gob.mx changes its markup, Anakin updates the action.
Do I need a Correos de México SEPOMEX account?
No. Every Correos de México SEPOMEX action listed here runs anonymously — no account and no credentials required.
What does the Correos de México SEPOMEX API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.