Tlaloc ZIP Codes API

SEPOMEX postal-code lookups.

GitHub OpenAPI

Operations 1

GET /v1/zip Get ZIP code information #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tlaloc-sh:tlaloc-sh-zip-codes-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

tlaloc-sh-zip-codes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mexico ZIP Codes API
  description: 'Mexican data services — ZIP codes, phone numbers, CURP/RFC validation, Banxico CEP payment proofs, CFDI (status/query/issue/cancel), and search over the Diario Oficial de la Federación (DOF).


    Authenticate every `/v1` call with `Authorization: Bearer `. Usage is billed per operation, only on success — see the pricing page for rates.'
  version: 1.0.0
servers:
- url: /mx
tags:
- name: ZIP Codes
  description: SEPOMEX postal-code lookups.
paths:
  /v1/zip:
    get:
      tags:
      - ZIP Codes
      summary: Get ZIP code information
      description: Retrieve information for a Mexican ZIP code including settlement, municipality, and state data.
      operationId: get_zip_code_v1_zip_get
      security:
      - HTTPBearer: []
      parameters:
      - name: code
        in: query
        required: true
        schema:
          type: string
          description: 5-digit ZIP code
          title: Code
        description: 5-digit ZIP code
        example: '01000'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ZipCodeResponse'
                title: Response Get Zip Code V1 Zip Get
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
          description: Error type
        message:
          type: string
          title: Message
          description: Error message
        details:
          anyOf:
          - type: string
          - type: 'null'
          title: Details
          description: Additional error details
      type: object
      required:
      - error
      - message
      title: ErrorResponse
      description: Error response schema.
    ValidationErrorResponse:
      properties:
        error:
          type: string
          title: Error
          description: Error type
          default: validation_error
        message:
          type: string
          title: Message
          description: Validation error message
        field:
          anyOf:
          - type: string
          - type: 'null'
          title: Field
          description: Field that failed validation
      type: object
      required:
      - message
      title: ValidationErrorResponse
      description: Validation error response schema.
    ZipCodeResponse:
      properties:
        asentamiento:
          type: string
          title: Asentamiento
          description: Asentamiento
        tipo_asentamiento:
          type: string
          title: Tipo Asentamiento
          description: Tipo de asentamiento
        municipio:
          type: string
          title: Municipio
          description: Municipio
        estado:
          type: string
          title: Estado
          description: Estado
        ciudad:
          anyOf:
          - type: string
          - type: 'null'
          title: Ciudad
          description: Ciudad
        cp_administracion:
          anyOf:
          - type: string
          - type: 'null'
          title: Cp Administracion
          description: Código postal de administración
        clave_estado:
          type: string
          title: Clave Estado
          description: Clave del estado
        cp_oficina_reparto:
          anyOf:
          - type: string
          - type: 'null'
          title: Cp Oficina Reparto
          description: Código postal de oficina de reparto
        clave_tipo_asentamiento:
          anyOf:
          - type: string
          - type: 'null'
          title: Clave Tipo Asentamiento
          description: Clave del tipo de asentamiento
        clave_municipio:
          anyOf:
          - type: string
          - type: 'null'
          title: Clave Municipio
          description: Clave del municipio
        zona:
          anyOf:
          - type: string
          - type: 'null'
          title: Zona
          description: Zona
        clave_ciudad:
          anyOf:
          - type: string
          - type: 'null'
          title: Clave Ciudad
          description: Clave de la ciudad
        clave_asentamiento:
          anyOf:
          - type: string
          - type: 'null'
          title: Clave Asentamiento
          description: Clave del asentamiento
      type: object
      required:
      - asentamiento
      - tipo_asentamiento
      - municipio
      - estado
      - clave_estado
      title: ZipCodeResponse
      description: ZIP code response schema.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer