# Search CEPs by address

> How to search CEPs by address, street, district or municipality on CNPJá, open a complete CEP and filter by type, status, municipality and state.

The CEP search finds Correios [CEPs](https://cnpja.com/en-us/docs/glossary#cep) by their number or by address, with filters for status, type, municipality and state. It lives in **CEP** > **Search postal codes** and is open to guests without an account, as [Guests, accounts and organizations](https://cnpja.com/en-us/docs/app/access-levels#guest) explains. What each CEP field means is in [CEPs, streets and IBGE codes](https://cnpja.com/en-us/docs/data/postal-codes).

## Search by CEP or address

1. On the rail, click **CEP**.
2. In the **Search a code or address** field, type a CEP, its first digits, a street, a district or a municipality. The table updates right after you stop typing.
3. Click a CEP in the table to open the [CEP record](https://cnpja.com/en-us/docs/postal-codes/record).

- The first digits of a CEP, from 3 on, find every CEP that starts with them.
- With more than one word, the search brings the CEPs that hold all of them, in any order.
- The terms found are highlighted in the CEP, the street, the district and the municipality.
- To erase the term, click the X in the field (**Clear search**). **Clear**, at the end of the filter band, erases the term and every filter.
- In the [global search](https://cnpja.com/en-us/docs/app/global-search), the link that shows every **CEP** result opens this search with the term already filled in.

> **Tip:** the CEPs you open are kept under **Recent**, in the sidebar, in this browser only. **Clear recent** erases the list, as [Data stored in your browser](https://cnpja.com/en-us/docs/privacy/browser-data#clear) explains.

## Open a complete CEP

When the field holds a complete CEP, its record is one key away.

1. Type or paste the CEP's 8 digits, with or without the dash.
2. Press `Enter`, or click the **Open** button followed by the CEP, beside the field.

Meanwhile, the table also narrows to that CEP. A CEP the Correios do not register opens the **Postal code not found** screen, as [Incomplete or unknown CEP](https://cnpja.com/en-us/docs/postal-codes/record#not-found) explains.

## Filters

The filters sit in the band beside the search field. Picks apply right away, and each filter narrows the result, together with the search term. Within a filter, the values ticked add up.

| Filter | Values |
| --- | --- |
| **Status** | **Active** or **Deactivated**, as [CEP status](https://cnpja.com/en-us/docs/glossary#situação-do-cep--cep-status) explains |
| **Type** | **Street**, **Locality**, **Large recipient**, **Operational unit** or **Community PO box**, as [CEP type](https://cnpja.com/en-us/docs/glossary#tipo-de-cep--cep-type) explains |
| **City** | Municipalities searched by name or code. The search uses the 7-digit [IBGE code](https://cnpja.com/en-us/docs/data/postal-codes#ibge-code), not the name |
| **State** | States picked on the map of Brazil |

- CEP filters only include values: there is no option to exclude.
- The X beside a filter clears that filter only.

The whole search, with the term, filters and page, lives in the page address. Copy the address to keep the search or send it to someone: whoever opens the link sees the same search, with the data as of that moment. The parameters are `search`, `status`, `type`, `municipality`, `state` and `offset`, and values the search does not take are dropped. A link to a page that no longer exists opens the first page.

## Columns

The number of CEPs found shows beside the title, at the top of the page.

| Column | What it shows |
| --- | --- |
| **Postal code** | The CEP, its first 5 digits highlighted. It leads to the CEP record and stays pinned on the left as you scroll the table sideways. The copy button shows as you point at the row and is always visible on touch screens |
| **Street** | The street with the number and the recipient's name or the complement. On a deactivated CEP, it is dimmed |
| **Status** | **Active** or **Deactivated** |
| **Type** | The CEP type |
| **District**, **City** and **State** | Where the CEP lies |
| **IBGE code** | The municipality's IBGE code |

A CEP with no street or no district, such as a locality's, shows a dash in those columns. The footer shows the rows displayed, the total and the page buttons. The page size is in [Usage limits](https://cnpja.com/en-us/docs/billing/limits).

## Searches with no results

| On screen | What it means | What to do |
| --- | --- | --- |
| **No postal code found** | No CEP meets every filter at once | Click **Clear filters** or **Search only for** followed by the term, which keeps only the search term. Check that the term is a CEP, a street, a district or a municipality |
| **The postal code search did not answer** | The search could not be read right now. The filters stay in the address | Click **Try again** in a moment. If the error persists, see [Troubleshooting](https://cnpja.com/en-us/docs/support/troubleshooting) |

A CEP the Correios just created only shows up after the DNE edition that includes it, as [CEPs, streets and IBGE codes](https://cnpja.com/en-us/docs/data/postal-codes) explains.

## Quota usage

Searching CEPs consumes no quota: opening a CEP record does, as the [CEP record](https://cnpja.com/en-us/docs/postal-codes/record#quota) explains. The rule is in the [Metering Rules](https://cnpja.com/en-us/legal/metering#not-charged).

## In the API

The equivalent search in the API is Search CEP (`GET /v2/postal-codes`), with the same status, type, state and municipality filters. It requires an [API key](https://cnpja.com/en-us/docs/organizations/api-keys) and consumes cached queries, under the [Metering Rules](https://cnpja.com/en-us/legal/metering#api). Parameters and fields are in [CEPs and addresses in the API](https://cnpja.com/en-us/docs/api/postal-codes#search-cep).
