The Database Hub | Back4App
The Database Hub | Back4App
How it works
  • Log In
  • Sign Up

  1. Back4App
  2. 🇧🇷 Brazilian Zip Codes Database
Public

89
113
89
113
  • DatabaseDatabase
  • GraphQL API PlaygroundAPI Playground
  • Get Started GuideGet Started
  • IssuesIssues
  • ContributorsContributors
  • GraphQL API Playground
    API Playground
    Get Started Guide
    Get Started
    Issues
    Issues
    Contributors
    Contributors

  1. 🇧🇷 Brazilian Zip Codes Database

Database with all postal codes of Correios (Brazilian Post Office). The database covers all addresses, streets, neighborhoods, towns, villages, cities, and states of Brazil. All data is available to download or consume via APIs (GraphQL or REST).

  • Java
  • Cities
  • Correios
  • CEP Correios
  • Brazil Post Code
  • Brasil
  • Brazil Zip Code
  • API CEP
  • REST
  • API
  • Brazil
  • Geography
  • Kotlin
  • Swift
  • Objective-C
  • CEP Brasil
  • Zip Code
  • CEP Brazil
  • Dart
  • NodeJS
  • Brazil Zip Codes
  • Flutter
  • Brazil Postal Code
  • Database
  • PHP
  • State
  • Javascript
  • GraphQl
  • Android
  • Datasets
  • Postal Code
  • List
  • Pin Code
  • GIS

Get StartedFetch Data
ClassClassesDescription
ClassCEP
List of postal codes of post offices divided by states, cities, neighborhoods, street address (street, avenue, etc.) and number.
NotesNotes

List of postal codes of post offices for Brazil

The Brazil postal code list is a very detailed database with data on the postal codes of Correios do Brasil (Brazilian Post Office). The database provides the zip code Brazil data as follows:

  • ZIP or Postal Code in alphabetical order (address A to Z)
  • State
  • City
  • Neighborhood
  • Address (Street, Avenue, etc.)
  • Number
  • Additional Information

The Brazil Zip Code database was specially designed to meet the needs of the developer. A developer can perform the following actions with the database:

  • Clone and make changes to the database
  • Connect any application to the database
  • Perform queries and retrieve data from the DB
  • Download the database in JSON format

Here are some ways in which the developer can benefit from using the Brazil Zip Code number service:

  • Insert data in autocomplete forms (autocomplete)
  • Access / retrieve data from different data sources under a single API key (API Key)
  • Run multiple queries on multiple data sets and centralize the results

Here are some easy to understand examples of the type of information you can retrieve using this database:

  • ZIP codes by street
  • Street address by zip code
  • ZIP codes by State

Search zip codes for an address

Use the web-console link below to obtain an address from a specific zip code. For example, if you enter zip code 01321001 you will get the following answer:

  • Address found:
  • Street: Rua Martiniano de Carvalho - odd side
  • Neighborhood: Bela Vista
  • Sao Paulo city
  • State: SP

Search Address by ZIP Code

GitHub Open Source App

Please check the open source project at Github App Brazil Zip Code

Brazilian States Covered

All 27 states of Brazil are part of this database.

  • Acre (AC)
  • Alagoas (AL)
  • Amapa (AP)
  • Amazonas (AM)
  • Bahia (BA)
  • Ceara (CE)
  • Distrito Federal (DF)
  • Espírito Santo (ES)
  • Goias (GO)
  • Maranhao (MA)
  • Mato Grosso (MT)
  • Mato Grosso do Sul (MS)
  • Minas Gerais (MG)
  • Para (PA)
  • Paraíba (PB)
  • Parana (PR)
  • Pernambuco (PE)
  • Piaui (PI)
  • Rio de Janeiro (RJ)
  • Rio Grande do Norte (RN)
  • Rio Grande do Sul (RS)
  • Rondonia (RO)
  • Roraima (RR)
  • Santa Catarina (SC)
  • Sao Paulo (SP)
  • Sergipe (SE)
  • Tocantins (TO)

List of ZIP Codes in Brazil

This data set provides the following information for each CEP:

  • CEP in numeric format
  • State in String format
  • City in String format
  • Neighborhood in String format
  • Address in String format
  • Number format number
  • Additional Information in String Format

Example below:

  • CEP: 01002020
  • State: SP
  • City: Sao Paulo
  • Neighborhood: Centro
  • Address: Viaduto do Cha
  • Number:
  • Additional Information:

Brazil Zip Code Format in Brazil

The Brazilian Zip Code have the following format:

#####-### , for example, 05713-570

On the Zip Code Brasil dataset, we will show postal codes under the following format:

########, for example, 05713570

The Brazil Postal Code Format is the same for all states and regions and each Brazilian ZIP Code number has a meaning. From left to right, the numbers indicate the region, sub-region, sector, sub-sector, sub-sector divider and distribution identifiers (last three digits). Brazil is divided into ten postal regions, which make up the first of the ZIP code numbers:

  • Region 0 - Greater São Paulo;
  • Region 1 - Interior of São Paulo;
  • Region 2 - Rio de Janeiro and Espírito Santo;
  • Region 3 - Minas Gerais;
  • Region 4 - Bahia and Sergipe;
  • Region 5 - Pernambuco, Alagoas, Paraíba and Rio Grande do Norte;
  • Region 6 - Ceará, Piauí, Maranhão, Pará, Amazonas, Acre, Amapá and Roraima;
  • Region 7 - Federal District, Goiás, Tocantins, Mato Grosso, Mato Grosso do Sul and Rondônia;
  • Region 8 - Paraná and Santa Catarina;
  • Region 9 - Rio Grande do Sul.

In the case of ZIP Code 05713-570, for example, we can see that the code refers to a Greater São Paulo, since the first digit of the same begins with the number 0. If we analyze each of the other digits according to the criteria established, we will conclude that the ZIP Code refers to the city of Sao Paulo. The last three digits of the code refer to the individual identification of localities, places, special codes and postal units.

Query examples

I will list some query examples you can perform using our API console.

Example 1: What is the Sao Paulo Zip Code?

The query will return 01000-000.

Fetch Data with Multiple Platforms

  • NodeJS - Fetch Data with Node JS Code
  • JavaScript - Fetch Data with Java Script Code
  • Swift - Fetch Data with Apple Swift Code
  • Objective-C - Fetch Data with Apple Objective-C Code
  • Kotlin on Android - Fetch Data with Kotlin on Android
  • Kotlin - Fetch Data with Kotlin
  • Java on Android - Fetch Data with Java on Android
  • PHP - Fetch Data with PHP
  • Python - Fetch Data with Python
  • Java - Fetch Data with Java
  • Flutter - Fetch Data with Flutter
  • Dart - Fetch Data with Dart

Data Source

Geonames

License

  • Creative Commons 4.0

Other useful databases

  • Zip Codes By Country
  • Portugal Zip Codes
  • Russia Zip Codes