VB.NET REST API of the Sepomex Database
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



Sepomex is the acronym of mexican postal service (SErvicio POstal MEXicano).

This is an unnoficial REST API version of the database they bring to the internet.



  • Visual Studio
  • Internet (to download the packages from nuget)

Open the Project in Visual Studio and run the following command in the Package Manager Console.

PM > Update-Database -Verbose

And that's it!

The total number of records stored in the database is 148,286 (April 2017) and it will take 7-10 seconds to complete.

How to Query

When you run the project it will open the home of the website (the default one), in order to use it you need to add to the end of the URI:


or you can use


if you are looking for the cities that match the current zip code.


If you want to contribute or have an idea to make this api better, please create another branch.

Mole Masters

To-do List

  • Paginate the results
  • Add cities and states to query

or tell me and i will add it!